test_nested_pydantic_fields() — langchain Function Reference
Architecture documentation for the test_nested_pydantic_fields() function in test_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 04a1033b_27bb_27a6_8f40_649dd107f69b["test_nested_pydantic_fields()"] 8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"] 04a1033b_27bb_27a6_8f40_649dd107f69b -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555 style 04a1033b_27bb_27a6_8f40_649dd107f69b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_tools.py lines 2843–2852
def test_nested_pydantic_fields() -> None:
class Address(BaseModel):
street: str
class Person(BaseModel):
name: str
address: Address = Field(description="Home address")
result = convert_to_openai_tool(Person)
assert len(result["function"]["parameters"]["properties"]) == 2
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_nested_pydantic_fields() do?
test_nested_pydantic_fields() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is test_nested_pydantic_fields() defined?
test_nested_pydantic_fields() is defined in libs/core/tests/unit_tests/test_tools.py at line 2843.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free