Home / Class/ FakeModelWithBothToolCalls Class — langchain Architecture

FakeModelWithBothToolCalls Class — langchain Architecture

Architecture documentation for the FakeModelWithBothToolCalls class in test_framework.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  43711b10_48ad_4e41_e4a9_5aff1b1f9405["FakeModelWithBothToolCalls"]
  67d9a14e_be69_a367_fd3c_cdb7f78dfa76["FakeToolCallingModel"]
  43711b10_48ad_4e41_e4a9_5aff1b1f9405 -->|extends| 67d9a14e_be69_a367_fd3c_cdb7f78dfa76
  8310d669_2524_e019_e333_8473b50a4990["test_framework.py"]
  43711b10_48ad_4e41_e4a9_5aff1b1f9405 -->|defined in| 8310d669_2524_e019_e333_8473b50a4990
  abbf617d_fb2b_aa7f_0b74_57e239e9241e["__init__()"]
  43711b10_48ad_4e41_e4a9_5aff1b1f9405 -->|method| abbf617d_fb2b_aa7f_0b74_57e239e9241e

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_framework.py lines 294–308

    class FakeModelWithBothToolCalls(FakeToolCallingModel):
        def __init__(self) -> None:
            super().__init__()
            self.tool_calls = [
                [
                    ToolCall(
                        name="WeatherResponse",
                        args={"temperature": 72.0, "condition": "sunny"},
                        id="structured_call_1",
                    ),
                    ToolCall(
                        name="regular_tool", args={"query": "test query"}, id="regular_call_1"
                    ),
                ]
            ]

Frequently Asked Questions

What is the FakeModelWithBothToolCalls class?
FakeModelWithBothToolCalls is a class in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_framework.py.
Where is FakeModelWithBothToolCalls defined?
FakeModelWithBothToolCalls is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_framework.py at line 294.
What does FakeModelWithBothToolCalls extend?
FakeModelWithBothToolCalls extends FakeToolCallingModel.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free