-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add tool call history support in chat messages #1565
base: main
Are you sure you want to change the base?
add tool call history support in chat messages #1565
Conversation
🦋 Changeset detectedLatest commit: c81e9a5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 30 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@erik-balfe is attempting to deploy a commit to the LlamaIndex Team on Vercel. A member of the Team first needs to authorize it. |
@llamaindex/autotool
@llamaindex/cloud
@llamaindex/community
@llamaindex/core
@llamaindex/experimental
llamaindex
@llamaindex/env
@llamaindex/node-parser
@llamaindex/readers
@llamaindex/wasm-tools
@llamaindex/workflow
@llamaindex/anthropic
@llamaindex/clip
@llamaindex/deepinfra
@llamaindex/groq
@llamaindex/huggingface
@llamaindex/ollama
@llamaindex/openai
@llamaindex/portkey-ai
@llamaindex/replicate
@llamaindex/vercel
@llamaindex/vllm
commit: |
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.
2ec1502
to
04b4f76
Compare
@marcusschiesser could you help me please? Is it something required from me or some permission issue? |
that's only for building the docs, which are not changed by this PR, so no worries |
e4ea830
to
c4f2f78
Compare
c4f2f78
to
c81e9a5
Compare
So are the any other problems with the PR? @himself65 |
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.
Closes #1564