-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle more advanced CoT tool use in Anthropic (#45)
Per [this guide](https://docs.anthropic.com/claude/docs/tool-use#chain-of-thought-tool-use), Anthropic might return multiple messages, expressing chain of thought and tool use. This change generalizes the conversion slightly so that we use the first text response and the first tool call.
- Loading branch information
Showing
1 changed file
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters