diff --git a/libs/partners/mistralai/langchain_mistralai/chat_models.py b/libs/partners/mistralai/langchain_mistralai/chat_models.py index b3a43629e8aae..7664e7a45cc2f 100644 --- a/libs/partners/mistralai/langchain_mistralai/chat_models.py +++ b/libs/partners/mistralai/langchain_mistralai/chat_models.py @@ -353,6 +353,7 @@ def _convert_message_to_mistral_chat_message( "role": "tool", "content": message.content, "name": message.name, + "tool_call_id": message.tool_call_id, } else: raise ValueError(f"Got unknown type {message}")