Home / Function/ dummy_pydantic() — langchain Function Reference

dummy_pydantic() — langchain Function Reference

Architecture documentation for the dummy_pydantic() function in test_function_calling.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  c71f968c_596b_b825_fbe0_782e84879077["dummy_pydantic()"]
  6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0["test_function_calling.py"]
  c71f968c_596b_b825_fbe0_782e84879077 -->|defined in| 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0
  a4ca20e5_25b3_5f62_a528_dd4d93e14cff["dummy_function()"]
  c71f968c_596b_b825_fbe0_782e84879077 -->|calls| a4ca20e5_25b3_5f62_a528_dd4d93e14cff
  style c71f968c_596b_b825_fbe0_782e84879077 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/utils/test_function_calling.py lines 152–159

def dummy_pydantic() -> type[BaseModel]:
    class dummy_function(BaseModel):  # noqa: N801
        """Dummy function."""

        arg1: int = Field(..., description="foo")
        arg2: Literal["bar", "baz"] = Field(..., description="one of 'bar', 'baz'")

    return dummy_function

Domain

Subdomains

Frequently Asked Questions

What does dummy_pydantic() do?
dummy_pydantic() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_function_calling.py.
Where is dummy_pydantic() defined?
dummy_pydantic() is defined in libs/core/tests/unit_tests/utils/test_function_calling.py at line 152.
What does dummy_pydantic() call?
dummy_pydantic() calls 1 function(s): dummy_function.

Analyze Your Own Codebase

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

Try Supermodel Free