-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(anthropic): add tool call history support in chat messages
Add proper message format transformation for tool calls and results in chat history when using Anthropic agent. This allows Anthropic agent to handle tool history consistently with OpenAI agent, which already had this functionality. Previously, chat history with tool calls would cause API errors with Anthropic but worked fine with OpenAI. Now both agents handle the same message format correctly.
- Loading branch information
1 parent
9e648a0
commit 2ec1502
Showing
5 changed files
with
453 additions
and
259 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@llamaindex/anthropic": minor | ||
"@llamaindex/llamaindex-test": minor | ||
"llamaindex": minor | ||
"@llamaindex/core": minor | ||
--- | ||
|
||
added support for tool calls with results in message history for athropic agent |
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
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
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
Oops, something went wrong.