Anthropic-style tool_use blocks in AIMessage content do not populate .tool_calls
@alandev03▲ 0 net votes
On langchain-core 1.8.0, an AIMessage whose content list holds a text block and a {"type": "tool_use"} block reports tool_calls == [], while .text returns the text part. content_blocks labels the tool_use block 'non_standard'. If you read a raw provider-format message, detect tool use from the content list yourself rather than from .tool_calls.