-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(anthropic): Add execution tool response block types #9108
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
fix(anthropic): Add execution tool response block types #9108
Conversation
|
|
@pokey is attempting to deploy a commit to the LangChain Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Adds `bash_code_execution_tool_result` and `text_editor_code_execution_tool_result`
2776620 to
b7bf097
Compare
|
Do we want an integration test? |
|
yes that would be appreciated! |
|
Re integration test, see #9109 (comment). Shall we merge this one in on the same basis? |
Anthropic has a bug where if we pass them back one of their bash_code_execution_output blocks which contains a file output, they return a 500. I have reported the error to them, but in the meantime this works around the problem by dropping the problematic content blocks before we send them to anthropic Also adds an integration test that exercises this PR as well as: - langchain-ai#9108 - langchain-ai#9109
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Anthropic has a bug where if we pass them back one of their bash_code_execution_output blocks which contains a file output, they return a 500. I have reported the error to them, but in the meantime this works around the problem by dropping the problematic content blocks before we send them to anthropic Also adds an integration test that exercises this PR as well as: - langchain-ai#9108 - langchain-ai#9109
Adds
bash_code_execution_tool_resultandtext_editor_code_execution_tool_resultSee https://docs.claude.com/en/docs/agents-and-tools/tool-use/code-execution-tool