-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat(anthropic): add programmatic tool calling #10979
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
base: main
Are you sure you want to change the base?
Conversation
| container: | ||
| anthropicOptions.container.skills && | ||
| anthropicOptions.container.skills.length > 0 | ||
| ? ({ | ||
| id: anthropicOptions.container.id, | ||
| skills: anthropicOptions.container.skills.map(skill => ({ | ||
| type: skill.type, | ||
| skill_id: skill.skillId, | ||
| version: skill.version, | ||
| })), | ||
| } satisfies AnthropicContainer) | ||
| : anthropicOptions.container.id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did this not work in the simpler version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, this would lead to an object mismatch error - it needed a string but we were passing an object with the skills parameter when it wasn't present
Background
Anthropic released a new way to call tools
See https://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling
Summary
Manual Verification
todo
Checklist
pnpm changesetin the project root)Future Work
need to refine the logic handling
Related Issues
Fixes #10594