Skip to content

feat: anthropic computer tool#2

Closed
hugodutka wants to merge 2 commits intocoder:mainfrom
hugodutka:hugodutka/anthropic-computer
Closed

feat: anthropic computer tool#2
hugodutka wants to merge 2 commits intocoder:mainfrom
hugodutka:hugodutka/anthropic-computer

Conversation

@hugodutka
Copy link
Copy Markdown
Collaborator

No description provided.

kylecarbs and others added 2 commits March 11, 2026 17:36
…arch_tool_result)

- Handle ProviderDefinedTool with ID "web_search" in toTools(), mapping to
  anthropic.WebSearchTool20250305Param with optional allowed/blocked domains
- Parse "server_tool_use" blocks in Generate() and Stream(), producing
  ToolCallContent with ProviderExecuted=true
- Parse "web_search_tool_result" blocks, extracting SourceContent for each
  search result and a ToolResultContent summary
- Stream server_tool_use via ToolInputStart/ToolInputEnd/ToolCall events
- Stream web_search_tool_result via Source events for each result item
- Skip provider-executed tool results and source content when building
  Anthropic prompts (toPrompt) to avoid sending unrecognized block types
- Add ProviderExecuted field to ToolResultPart with JSON marshal/unmarshal
- Propagate ProviderExecuted from ToolResultContent to ToolResultPart in
  agent's toResponseMessages()
* prompts

* feat: implement anthropic computer use support
@hugodutka hugodutka closed this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants