Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: revert required tool calling after n steps #235

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mattmcdev
Copy link
Contributor

Opening this PR to replace this one.

This proposes adding a new option when calling withToolChoice to automatically revert the specific choice back to auto.

When combined with setting maxSteps this lets you require a model use a tool n times and then return a response.

The default value is null so should be a non-breaking change.

Can update docs on how and when to use this if accepted.

@mattmcdev mattmcdev force-pushed the feat-revert-required-tool-calling branch 2 times, most recently from b806085 to 56f5045 Compare March 7, 2025 14:15
Copy link

kinsta bot commented Mar 8, 2025

Preview deployments for prism ⚡️

Status Branch preview Commit preview
✅ Ready Visit preview Visit preview

Commit: 53b4268e72e6be35a41de2d6713fb9c457337f46

Deployment ID: eb57111b-afb8-42b9-a90f-a37968ad2355

Static site name: prism-97nz9

Copy link

kinsta bot commented Mar 8, 2025

Preview deployments for prism ⚡️

Status Branch preview Commit preview
❌ Failed to deploy N/A N/A

Commit: 04a0aff955203c9bfba5f6b15db4e1a242355f05

Deployment ID: fb34d344-5f3b-409f-85e3-056bd7c42845

Static site name: prism-97nz9

@mattmcdev mattmcdev force-pushed the feat-revert-required-tool-calling branch 3 times, most recently from 41d7960 to bfb3788 Compare March 12, 2025 14:17
@mattmcdev mattmcdev force-pushed the feat-revert-required-tool-calling branch from bfb3788 to d11d214 Compare March 13, 2025 10: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.

1 participant