DashScopeProperties
@ConfigurationProperties(prefix = "agentscope.dashscope") public class DashScopeProperties
io/agentscope/spring/boot/dashscope/DashScopeProperties.java:38–137DashScope 属性,承载智能体的部署、调度与服务化运行。位于 io.agentscope.spring.boot.dashscope 包。核心成员包括 isEnabled、setEnabled、getApiKey、setApiKey、getModelName、setModelName。
DashScope provider specific configuration properties.
Example configuration (default provider when agentscope.model.provider is omitted):
`agentscope:
dashscope:
enabled: true
api-key: ${DASHSCOPE_API_KEY}
model-name: qwen-plus
# base-url: # optional
stream: true
enable-thinking: true
# multimodal-model-patterns: ["deepseek-v4.1"] # optional
`
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public boolean isEnabled() | 判断是否已启用。 Returns whether the enabled. |
public void setEnabled(boolean enabled) | 设置已启用。 Sets the enabled. |
public String getApiKey() | 获取API 键。 Returns the api key. |
public void setApiKey(String apiKey) | 设置API 键。 Sets the api key. |
public String getModelName() | 获取模型名称。 Returns the model name. |
public void setModelName(String modelName) | 设置模型名称。 Sets the model name. |
public String getBaseUrl() | 获取基类 URL。 Returns the base url. |
public void setBaseUrl(String baseUrl) | 设置基类 URL。 Sets the base url. |
public boolean isStream() | 判断是否流。 Returns whether the stream. |
public void setStream(boolean stream) | 设置流。 Sets the stream. |
public Boolean getEnableThinking() | 获取 `getEnableThinking`。 Returns the enable thinking. |
public void setEnableThinking(Boolean enableThinking) | 设置 `setEnableThinking`。 Sets the enable thinking. |
public List<String> getMultimodalModelPatterns() | 获取 `getMultimodalModelPatterns`。 Returns the multimodal model patterns. |
public void setMultimodalModelPatterns(List<String> multimodalModelPatterns) | 设置 `setMultimodalModelPatterns`。 Sets the multimodal model patterns. |
方法详情Method Detail
isEnabled
public boolean isEnabled()
判断是否已启用。
Returns whether the enabled.
booleanio/agentscope/spring/boot/dashscope/DashScopeProperties.java:82–84setEnabled
public void setEnabled(boolean enabled)
设置已启用。
Sets the enabled.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enabled | boolean | 已启用(类型 `boolean`)。The enabled. |
io/agentscope/spring/boot/dashscope/DashScopeProperties.java:86–88getApiKey
public String getApiKey()
获取API 键。
Returns the api key.
Stringio/agentscope/spring/boot/dashscope/DashScopeProperties.java:90–92setApiKey
public void setApiKey(String apiKey)
设置API 键。
Sets the api key.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
apiKey | String | API 键(类型 `String`)。The api key. |
io/agentscope/spring/boot/dashscope/DashScopeProperties.java:94–96getModelName
public String getModelName()
获取模型名称。
Returns the model name.
Stringio/agentscope/spring/boot/dashscope/DashScopeProperties.java:98–100setModelName
public void setModelName(String modelName)
设置模型名称。
Sets the model name.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
modelName | String | 模型名称(类型 `String`)。The model name. |
io/agentscope/spring/boot/dashscope/DashScopeProperties.java:102–104getBaseUrl
public String getBaseUrl()
获取基类 URL。
Returns the base url.
Stringio/agentscope/spring/boot/dashscope/DashScopeProperties.java:106–108setBaseUrl
public void setBaseUrl(String baseUrl)
设置基类 URL。
Sets the base url.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
baseUrl | String | 基类 URL(类型 `String`)。The base url. |
io/agentscope/spring/boot/dashscope/DashScopeProperties.java:110–112isStream
public boolean isStream()
判断是否流。
Returns whether the stream.
booleanio/agentscope/spring/boot/dashscope/DashScopeProperties.java:114–116setStream
public void setStream(boolean stream)
设置流。
Sets the stream.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
stream | boolean | 流(类型 `boolean`)。The stream. |
io/agentscope/spring/boot/dashscope/DashScopeProperties.java:118–120getEnableThinking
public Boolean getEnableThinking()
获取 getEnableThinking。
Returns the enable thinking.
Booleanio/agentscope/spring/boot/dashscope/DashScopeProperties.java:122–124setEnableThinking
public void setEnableThinking(Boolean enableThinking)
设置 setEnableThinking。
Sets the enable thinking.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enableThinking | Boolean | 启用 Thinking(类型 `Boolean`)。The enable thinking. |
io/agentscope/spring/boot/dashscope/DashScopeProperties.java:126–128getMultimodalModelPatterns
public List<String> getMultimodalModelPatterns()
获取 getMultimodalModelPatterns。
Returns the multimodal model patterns.
List<String>io/agentscope/spring/boot/dashscope/DashScopeProperties.java:130–132setMultimodalModelPatterns
public void setMultimodalModelPatterns(List<String> multimodalModelPatterns)
设置 setMultimodalModelPatterns。
Sets the multimodal model patterns.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
multimodalModelPatterns | List<String> | 多模态模型 Patterns(类型 `List`)。The multimodal model patterns. |
io/agentscope/spring/boot/dashscope/DashScopeProperties.java:134–136