The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
openai[patch]: fix bug where function call IDs were not populated (#31735)
ccurme84500704ab84
diff --git a/libs/partners/openai/langchain_openai/chat_models/_compat.py b/libs/partners/openai/langchain_openai/chat_models/_compat.pyindex d266039488..a0db5df9b4 100644--- a/libs/partners/openai/langchain_openai/chat_models/_compat.py+++ b/libs/partners/openai/langchain_openai/chat_models/_compat.py@@ -142,7 +142,7 @@ def _convert_from_v03_ai_message(message: AIMessage) -> AIMessage:and all(isinstance(b, dict) for b in message.content)) or not any(item in message.additional_kwargs- for item in ["reasoning", "tool_outputs", "refusal"]+ for item in ["reasoning", "tool_outputs", "refusal", _FUNCTION_CALL_IDS_MAP_KEY]):return message