_lc_invalid_tool_call_to_hf_tool_call() — langchain Function Reference
Architecture documentation for the _lc_invalid_tool_call_to_hf_tool_call() function in huggingface.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 9c5cbe34_6385_0c12_5fd0_7ffc20dfd1d3["_lc_invalid_tool_call_to_hf_tool_call()"] d84d1503_7d4c_e393_0d48_409c5faa5e2d["huggingface.py"] 9c5cbe34_6385_0c12_5fd0_7ffc20dfd1d3 -->|defined in| d84d1503_7d4c_e393_0d48_409c5faa5e2d afa2f960_1285_3e53_3b4d_ef08d41d03d1["_convert_message_to_dict()"] afa2f960_1285_3e53_3b4d_ef08d41d03d1 -->|calls| 9c5cbe34_6385_0c12_5fd0_7ffc20dfd1d3 style 9c5cbe34_6385_0c12_5fd0_7ffc20dfd1d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py lines 112–122
def _lc_invalid_tool_call_to_hf_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_hf_tool_call() do?
_lc_invalid_tool_call_to_hf_tool_call() is a function in the langchain codebase, defined in libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py.
Where is _lc_invalid_tool_call_to_hf_tool_call() defined?
_lc_invalid_tool_call_to_hf_tool_call() is defined in libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py at line 112.
What calls _lc_invalid_tool_call_to_hf_tool_call()?
_lc_invalid_tool_call_to_hf_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