_lc_invalid_tool_call_to_openai_tool_call() — langchain Function Reference
Architecture documentation for the _lc_invalid_tool_call_to_openai_tool_call() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c5d6c2a5_bdf3_8608_6524_003dc628d0ed["_lc_invalid_tool_call_to_openai_tool_call()"] 2b046911_ea21_8e2e_ba0d_9d03da8d7bda["base.py"] c5d6c2a5_bdf3_8608_6524_003dc628d0ed -->|defined in| 2b046911_ea21_8e2e_ba0d_9d03da8d7bda fd643003_13df_3a67_6bdc_07576981e414["_convert_message_to_dict()"] fd643003_13df_3a67_6bdc_07576981e414 -->|calls| c5d6c2a5_bdf3_8608_6524_003dc628d0ed style c5d6c2a5_bdf3_8608_6524_003dc628d0ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/langchain_openai/chat_models/base.py lines 3505–3515
def _lc_invalid_tool_call_to_openai_tool_call(
invalid_tool_call: InvalidToolCall,
) -> dict:
return {
"type": "function",
"id": invalid_tool_call["id"],
"function": {
"name": invalid_tool_call["name"],
"arguments": invalid_tool_call["args"],
},
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _lc_invalid_tool_call_to_openai_tool_call() do?
_lc_invalid_tool_call_to_openai_tool_call() is a function in the langchain codebase, defined in libs/partners/openai/langchain_openai/chat_models/base.py.
Where is _lc_invalid_tool_call_to_openai_tool_call() defined?
_lc_invalid_tool_call_to_openai_tool_call() is defined in libs/partners/openai/langchain_openai/chat_models/base.py at line 3505.
What calls _lc_invalid_tool_call_to_openai_tool_call()?
_lc_invalid_tool_call_to_openai_tool_call() is called by 1 function(s): _convert_message_to_dict.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free