DashscopeConfig
interface DashscopeConfig
源码Source
io/agentscope/quarkus/runtime/AgentScopeConfig.java:85–113定义 DashScope 配置契约的接口。位于 io.agentscope.quarkus.runtime 包。核心成员包括 apiKey、modelName、stream、enableThinking、baseUrl。
DashScope configuration.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Optional<String> apiKey() | 用于DashScope的API 密钥。 API key for DashScope. |
public String modelName() | 返回模型名称。 Model name (e.g., qwen-plus, qwen-max). |
public boolean stream() | 返回流。 Enable streaming. |
public boolean enableThinking() | 启用 `enableThinking`。 Enable thinking mode. |
public Optional<String> baseUrl() | 返回基类 URL。 Base URL (optional). |
方法详情Method Detail
apiKey
public Optional<String> apiKey()
用于DashScope的API 密钥。
API key for DashScope.
Optional<String>返回可选。Returns optional.
源码Source
io/agentscope/quarkus/runtime/AgentScopeConfig.java:89modelName
public String modelName()
返回模型名称。
Model name (e.g., qwen-plus, qwen-max).
String返回字符串结果。Returns a string.
源码Source
io/agentscope/quarkus/runtime/AgentScopeConfig.java:94–95stream
public boolean stream()
返回流。
Enable streaming.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/quarkus/runtime/AgentScopeConfig.java:100–101enableThinking
public boolean enableThinking()
启用 enableThinking。
Enable thinking mode.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/quarkus/runtime/AgentScopeConfig.java:106–107baseUrl
public Optional<String> baseUrl()
返回基类 URL。
Base URL (optional).
Optional<String>返回可选。Returns optional.
源码Source
io/agentscope/quarkus/runtime/AgentScopeConfig.java:112