Skip to content

fix(anthropic): preserve all assistant parts for tool use#1483

Open
WyRainBow wants to merge 1 commit intotmc:mainfrom
WyRainBow:feature/fix-1456
Open

fix(anthropic): preserve all assistant parts for tool use#1483
WyRainBow wants to merge 1 commit intotmc:mainfrom
WyRainBow:feature/fix-1456

Conversation

@WyRainBow
Copy link
Copy Markdown

Summary

  • fix handleAIMessage to process all assistant Parts instead of only Parts[0]
  • preserve mixed assistant content (text + tool_use) in original order
  • return explicit errors for unsupported/empty AI message parts

Fixes #1468

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.

anthropic: handleAIMessage only processes Parts[0], drops subsequent tool calls

1 participant