Class DashScopeProperties
java.lang.Object
io.agentscope.spring.boot.dashscope.DashScopeProperties
@ConfigurationProperties(prefix="agentscope.dashscope")
public class DashScopeProperties
extends Object
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisStream()voidvoidsetBaseUrl(String baseUrl) voidsetEnabled(boolean enabled) voidsetEnableThinking(Boolean enableThinking) voidsetModelName(String modelName) voidsetMultimodalModelPatterns(List<String> multimodalModelPatterns) voidsetStream(boolean stream)
-
Constructor Details
-
DashScopeProperties
public DashScopeProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getApiKey
-
setApiKey
-
getModelName
-
setModelName
-
getBaseUrl
-
setBaseUrl
-
isStream
public boolean isStream() -
setStream
public void setStream(boolean stream) -
getEnableThinking
-
setEnableThinking
-
getMultimodalModelPatterns
-
setMultimodalModelPatterns
-