Commit 19c4fcf
When converting CopilotKit assistant messages with tool calls to VoltAgent
format, the adapter sets `args` on tool-call parts. The AI SDK's
`ToolCallPart` interface expects `input`, so the Anthropic provider sends
`undefined` as the tool_use input — rejected by the API with:
"messages.N.content.N.tool_use.input: Input should be a valid dictionary"
This rename aligns with the AI SDK's ToolCallPart interface from
@ai-sdk/provider-utils.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a1b68cc commit 19c4fcf
2 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| |||
0 commit comments