Home / Function/ _lc_tool_call_to_fireworks_tool_call() — langchain Function Reference

_lc_tool_call_to_fireworks_tool_call() — langchain Function Reference

Architecture documentation for the _lc_tool_call_to_fireworks_tool_call() function in chat_models.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  79153718_44df_faf2_a635_ffa396d910fa["_lc_tool_call_to_fireworks_tool_call()"]
  21b8cbde_a9dc_13d6_83f9_010248e2bfc8["chat_models.py"]
  79153718_44df_faf2_a635_ffa396d910fa -->|defined in| 21b8cbde_a9dc_13d6_83f9_010248e2bfc8
  b36238d4_3fcc_a7ef_cadf_a0901de86384["_convert_message_to_dict()"]
  b36238d4_3fcc_a7ef_cadf_a0901de86384 -->|calls| 79153718_44df_faf2_a635_ffa396d910fa
  style 79153718_44df_faf2_a635_ffa396d910fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/fireworks/langchain_fireworks/chat_models.py lines 1062–1070

def _lc_tool_call_to_fireworks_tool_call(tool_call: ToolCall) -> dict:
    return {
        "type": "function",
        "id": tool_call["id"],
        "function": {
            "name": tool_call["name"],
            "arguments": json.dumps(tool_call["args"], ensure_ascii=False),
        },
    }

Domain

Subdomains

Frequently Asked Questions

What does _lc_tool_call_to_fireworks_tool_call() do?
_lc_tool_call_to_fireworks_tool_call() is a function in the langchain codebase, defined in libs/partners/fireworks/langchain_fireworks/chat_models.py.
Where is _lc_tool_call_to_fireworks_tool_call() defined?
_lc_tool_call_to_fireworks_tool_call() is defined in libs/partners/fireworks/langchain_fireworks/chat_models.py at line 1062.
What calls _lc_tool_call_to_fireworks_tool_call()?
_lc_tool_call_to_fireworks_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