Skip to content

feat: support per-request tool providers - #334

Merged
PsiACE merged 4 commits into
mainfrom
fix/tool-prompt-duplication
Oct 1, 2026
Merged

PsiACE merged 4 commits into
mainfrom
fix/tool-prompt-duplication

Conversation

@PsiACE

@PsiACE PsiACE commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Add per-request tool providers and run code mode through the same (tools, tool_prompt) pipeline. Builtins remain directly available; native tool definitions are no longer repeated in the system prompt. Update English and Chinese docs.

Validation: make check, 569 tests passed (20 skipped), and docs build. Provider tests cover model-visible tools, prompts, and actual calls.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 30, 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 Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bub 1c6b1a6 Commit Preview URL

Branch Preview URL
Oct 01 2026, 02:42 PM

@PsiACE
PsiACE force-pushed the fix/tool-prompt-duplication branch from 4cdda1c to 412c80c Compare September 30, 2026 18:35
@PsiACE PsiACE changed the title fix: avoid duplicating tool definitions in system prompts feat: load tool definitions on demand Sep 30, 2026
@PsiACE PsiACE changed the title feat: load tool definitions on demand feat: support per-request tool providers Sep 30, 2026

@frostming frostming left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please unify _prepare_code_mode as a tool provider and returns a tuple of (tools, tool_prompt)

@PsiACE PsiACE closed this Oct 1, 2026
@PsiACE PsiACE reopened this Oct 1, 2026
@PsiACE
PsiACE marked this pull request as ready for review October 1, 2026 14:41
@PsiACE
PsiACE merged commit 75dd10c into main Oct 1, 2026
11 checks passed
@frostming
frostming deleted the fix/tool-prompt-duplication branch October 1, 2026 14:50
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