AS AgentScopeAPI 手册 / API Reference

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.

返回Returns Optional<String>
返回可选。Returns optional.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:89

modelName

public String modelName()

返回模型名称。

Model name (e.g., qwen-plus, qwen-max).

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:94–95

stream

public boolean stream()

返回流。

Enable streaming.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:100–101

enableThinking

public boolean enableThinking()

启用 enableThinking。

Enable thinking mode.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:106–107

baseUrl

public Optional<String> baseUrl()

返回基类 URL。

Base URL (optional).

返回Returns Optional<String>
返回可选。Returns optional.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:112
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.