Patch Changes
-
#9788
82080b5Thanks @SkrOYC! - fix: handle "tool_call" content blocks in ChatGoogleGenerativeAI with outputVersion: "v1"Previously, using
outputVersion: "v1"withChatGoogleGenerativeAIwould throw an "Unknown content type tool_call" error when processing tool calls generated by LangChain'sAIMessage. This fix adds a handler for thetool_callblock type in the conversion utility, ensuring compatibility with standard LangChain tool call blocks.