Invoking ChatAnthropic with thinking mode after tool results does not return a thinking block #31223
Unanswered
jrjenkins555
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Whenever a tool result is the most recent message, the model will not respond with a thinking block - I iteratively call an anthropic model with one tool with thinking mode enabled. I set up this script to test and used a dummy example to demonstrate this and am able to reproduce. I know thinking is enabled so I'm assuming that I should expect a thinking block in every response. I tried on latest langchain version and this did not work.
Based on docs I believe this is incorrect but I'm definitely not receiving any errors. Any pointers appreciated - thanks!
System Info
Dependencies
langchain-anthropic==0.3.13
langchain-core==0.3.59
langchain-google-genai==2.1.3
langchain-openai==0.3.14
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions