AS AgentScopeAPI 手册 / API Reference

AnthropicConfig

interface AnthropicConfig
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:183–205

定义 Anthropic 配置契约的接口。位于 io.agentscope.quarkus.runtime 包。核心成员包括 apiKey、modelName、stream、baseUrl。

Anthropic configuration.

方法摘要Method Summary

方法Method说明Description
public Optional<String> apiKey()
返回API 键。
API key for Anthropic.
public String modelName()
返回模型名称。
Model name (e.g., claude-3-5-sonnet-20241022).
public boolean stream()
返回流。
Enable streaming.
public Optional<String> baseUrl()
返回基类 URL。
Base URL (optional).

方法详情Method Detail

apiKey

public Optional<String> apiKey()

返回API 键。

API key for Anthropic.

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

modelName

public String modelName()

返回模型名称。

Model name (e.g., claude-3-5-sonnet-20241022).

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

stream

public boolean stream()

返回流。

Enable streaming.

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

baseUrl

public Optional<String> baseUrl()

返回基类 URL。

Base URL (optional).

返回Returns Optional<String>
返回可选。Returns optional.
源码Source io/agentscope/quarkus/runtime/AgentScopeConfig.java:204
基于官方固定版本源码静态生成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.