Skip to content

fix(core): improve tool search and errors - #313

Merged
jyecusch merged 2 commits into
stable-turn-toolsfrom
tool-search-fixes
Oct 6, 2026
Merged

jyecusch merged 2 commits into
stable-turn-toolsfrom
tool-search-fixes

Conversation

@jyecusch

@jyecusch jyecusch commented Oct 6, 2026

Copy link
Copy Markdown
Member

Part of SUGA-1936.

  • tool_search uses MiniSearch for ranking, which weighs a tool's name and connection above its description and tolerates prefixes and typos. A search by a tool's full or bare name returns that tool first, with its schema.
  • call_tool accepts a bare tool name when only one connection has it.
  • A server's error answer, such as for invalid arguments, reaches the model as an error result it can correct.
  • A call missing a required argument is refused before anyone is asked to approve it.
  • The turn's note names connections whose server isn't answering, and a failed server is skipped for a minute rather than timing out every turn.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
sugabots-website de8d9f6 Oct 06 2026, 10:28 AM

@jyecusch
jyecusch added this pull request to stack #315 October 6, 2026 10:24
@jyecusch
jyecusch merged commit 5c3f126 into main Oct 6, 2026
7 checks passed
@jyecusch
jyecusch deleted the tool-search-fixes branch October 6, 2026 11:04
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.

1 participant