Home / Function/ test_structured_tool_types_parsed_pydantic_mixed() — langchain Function Reference

test_structured_tool_types_parsed_pydantic_mixed() — langchain Function Reference

Architecture documentation for the test_structured_tool_types_parsed_pydantic_mixed() function in test_tools.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  7d6385a3_b74a_2637_311f_c99e6c91916c["test_structured_tool_types_parsed_pydantic_mixed()"]
  8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"]
  7d6385a3_b74a_2637_311f_c99e6c91916c -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555
  style 7d6385a3_b74a_2637_311f_c99e6c91916c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/test_tools.py lines 397–412

def test_structured_tool_types_parsed_pydantic_mixed() -> None:
    """Test handling of tool with mixed Pydantic version arguments."""

    class SomeBaseModel(BaseModelV1):
        foo: str

    class AnotherBaseModel(BaseModel):
        bar: str

    with pytest.raises(NotImplementedError):

        @tool
        def structured_tool(
            some_base_model: SomeBaseModel, another_base_model: AnotherBaseModel
        ) -> None:
            """Return the arguments directly."""

Domain

Subdomains

Frequently Asked Questions

What does test_structured_tool_types_parsed_pydantic_mixed() do?
test_structured_tool_types_parsed_pydantic_mixed() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is test_structured_tool_types_parsed_pydantic_mixed() defined?
test_structured_tool_types_parsed_pydantic_mixed() is defined in libs/core/tests/unit_tests/test_tools.py at line 397.

Analyze Your Own Codebase

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

Try Supermodel Free