medium90%
convert_to_openai_messages drops invalid tool calls from exported conversations
The convert_to_openai_messages utility in langchain-core omits AIMessage.invalid_tool_calls from the converted OpenAI message, while the corresponding ToolMessage replies are retained, leading to orphaned tool_call_id references in exported conversations.
