rig
rig copied to clipboard
fix: anthropic tool use
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