agentscope-extensions-model-anthropic integrates Anthropic Claude models, including Anthropic-specific formatter and request DTO support.
Add the dependency
ModelRegistry
SetANTHROPIC_API_KEY, then use the anthropic:<model> id:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
agentscope-extensions-model-anthropic integrates Anthropic Claude models, including Anthropic-specific formatter and request DTO support.
<dependency>
<groupId>io.agentscope</groupId>
<artifactId>agentscope-extensions-model-anthropic</artifactId>
<version>${agentscope.version}</version>
</dependency>
ANTHROPIC_API_KEY, then use the anthropic:<model> id:
ReActAgent agent = ReActAgent.builder()
.name("assistant")
.model("anthropic:claude-sonnet-4.5") // Resolved internally by ModelRegistry.resolve(modelId)
.build();
import io.agentscope.extensions.model.anthropic.AnthropicChatModel;
AnthropicChatModel model = AnthropicChatModel.builder()
.apiKey(System.getenv("ANTHROPIC_API_KEY"))
.modelName("claude-sonnet-4.5")
.stream(true)
.build();
<dependency>
<groupId>io.agentscope</groupId>
<artifactId>agentscope-anthropic-spring-boot-starter</artifactId>
<version>${agentscope.version}</version>
</dependency>