Skip to content

fix: support Anthropic tool calls#1766

Open
chuancyzhang wants to merge 1 commit into
Tencent:mainfrom
chuancyzhang:fix-anthropic-tool-calls
Open

fix: support Anthropic tool calls#1766
chuancyzhang wants to merge 1 commit into
Tencent:mainfrom
chuancyzhang:fix-anthropic-tool-calls

Conversation

@chuancyzhang

Copy link
Copy Markdown

Description

Summary

  • add Anthropic Messages API tool definitions and tool_choice mapping
  • parse Anthropic tool_use blocks into internal LLM tool calls
  • preserve agent streaming behavior by emitting tool-call events when tools are enabled
  • add regression coverage for Anthropic tool_use responses

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📚 Documentation update
  • 🎨 Refactor
  • ⚡ Performance improvement
  • 🧪 Test
  • 🔧 Configuration / Build / CI

Related Issue

Fixes #

Testing

Checklist

  • make fmt && make lint && make test pass locally
  • Self-reviewed the code
  • Added/updated tests covering the change
  • Updated related documentation (README, docs/, Swagger annotations, etc.)
  • Breaking changes are clearly called out in the description above

Screenshots / Recordings

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