Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
agentscope-extensions-model-dashscope
<dependency> <groupId>io.agentscope</groupId> <artifactId>agentscope-extensions-model-dashscope</artifactId> <version>${agentscope.version}</version> </dependency>
DASHSCOPE_API_KEY
dashscope:<model>
ReActAgent agent = ReActAgent.builder() .name("assistant") .model("dashscope:qwen-plus") // 底层由 ModelRegistry.resolve(modelId) 解析 .build();
ReActAgent agent = ReActAgent.builder() .name("assistant") .model("qwen-plus") // 底层由 ModelRegistry.resolve(modelId) 解析 .build();
import io.agentscope.extensions.model.dashscope.DashScopeChatModel; DashScopeChatModel model = DashScopeChatModel.builder() .apiKey(System.getenv("DASHSCOPE_API_KEY")) .modelName("qwen-plus") .stream(true) .build();
<dependency> <groupId>io.agentscope</groupId> <artifactId>agentscope-dashscope-spring-boot-starter</artifactId> <version>${agentscope.version}</version> </dependency>