Resolving INVALID_TOOL_RESULTS in LangChain Tool Calling Chains for ai agent skills
LangChain's tool-calling protocol requires exactly one ToolMessage per tool_call_id in a preceding AIMessage with tool_calls, and violating that one-to-one correspondence triggers the INVALID_TOOL_RESULTS error, which th…