Skip to content

[Feature]: 支持 Anthropic server tools / Web Search #2236

Closed

Description

@jujn

当前仅支持客户端工具 schema,不支持 Claude 内置 server tools,例如 web_search、code execution 等;也无法返回 server tool result。

Activity

  1. added
    enhancement
    on Jul 15, 2026
  2. Leeaoyin commented on Jul 16, 2026

    @Leeaoyin
    Contributor

    1、claude server tools的每个tool都有很多版本,不同版本可能提供不同的能力,如web search tool就有web_search_20260318、web_search_20260209、web_search_20250305三个版本,那么是否应该允许开发者显式选择服务端工具的版本

    2、目前的 anthropic-java 锁在 2.14.0(agentscope-dependencies-bom),这个版本已有 WebSearchTool20250305 / ServerToolUseBlock / WebSearchToolResultBlock,web search 可以直接用,如果要支持更新版本的server tools可能要升级 anthropic-java,还要引入一个更通用、支持工具版本选择的服务端工具抽象

  3. jujn commented on Jul 16, 2026

    @jujn
    CollaboratorAuthor

    1、claude server tools的每个tool都有很多版本,不同版本可能提供不同的能力,……
    2、目前的 anthropic-java 锁在 2.14.0(agentscope-dependencies-bom),……

    建议引入 Anthropic 专属的版本化 AnthropicServerTool 抽象,允许开发者显式指定 type(如 web_search_20250305)。可以先基于当前 anthropic-java 2.14.0 支持及其结果解析。

  4. added
    area/core/model
    on Jul 16, 2026
  5. Leeaoyin commented on Jul 16, 2026

    @Leeaoyin
    Contributor

    1、claude server tools的每个tool都有很多版本,不同版本可能提供不同的能力,……
    2、目前的 anthropic-java 锁在 2.14.0(agentscope-dependencies-bom),……

    建议引入 Anthropic 专属的版本化 AnthropicServerTool 抽象,允许开发者显式指定 type(如 web_search_20250305)。可以先基于当前 anthropic-java 2.14.0 支持及其结果解析。

    或许我可以尝试下🙂

  6. moved this from Backlog to In progress in AgentScope Javaon Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/core/modelenhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions