rig icon indicating copy to clipboard operation
rig copied to clipboard

fix: anthropic tool use

Open edisontim opened this issue 2 months ago • 3 comments

anthropic currently sends back a vec on Content structs. Before the fix we were matching on the first element of that. The first element of a ToolUse is rarely ever the tool but more often text so we were never actually getting the tool use as a CompletionResponse

The PR first tries to find a tool use in the vec then some text

edisontim avatar Dec 26 '24 23:12 edisontim