Skip to content

Support claude web search tool#467

Merged
adamw merged 6 commits into
masterfrom
465-support-predefined-claude-tools-like-web-search
May 7, 2026
Merged

Support claude web search tool#467
adamw merged 6 commits into
masterfrom
465-support-predefined-claude-tools-like-web-search

Conversation

@kubinio123
Copy link
Copy Markdown
Contributor

@kubinio123 kubinio123 commented May 6, 2026

DONE:

  • claude Tool model migrated to trait to support predefined ones
  • claude ContentBlock model updated to support outputs of web search tool
  • tests and documentation example

Why only web search tool?
Web fetch tool would be nice to integrate too at some point, but currently it's in beta.
I am not convinced about integrating other, more interactive tools like code execution, bash, or computer use tools to sttp-ai, maybe they could serve some use in script like scala programs... still, let's start with the most obvious one.

@kubinio123 kubinio123 linked an issue May 6, 2026 that may be closed by this pull request
@kubinio123 kubinio123 marked this pull request as ready for review May 6, 2026 12:53
@kubinio123 kubinio123 requested a review from adamw May 6, 2026 12:57
Comment thread README.md Outdated
messages = List(Message.user(List(ContentBlock.text("What was the most recent SpaceX launch?")))),
maxTokens = 1024,
tools = List(
Tool.WebSearch(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have a Tool.WebSearch.default? With the minimum configuration required from the user to create a web search tool?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, let's do that

@adamw adamw merged commit fa739fa into master May 7, 2026
10 checks passed
@adamw adamw deleted the 465-support-predefined-claude-tools-like-web-search branch May 7, 2026 09:39
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.

Support predefined claude tools (like web search)

2 participants