Home / Class/ MockCompany Class — langchain Architecture

MockCompany Class — langchain Architecture

Architecture documentation for the MockCompany class in test_output_parsers.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  8336cc3f_4dc4_0a3e_bb99_c924be20b574["MockCompany"]
  404c4f2e_2e78_7429_00c2_95ca3f208765["test_output_parsers.py"]
  8336cc3f_4dc4_0a3e_bb99_c924be20b574 -->|defined in| 404c4f2e_2e78_7429_00c2_95ca3f208765

Relationship Graph

Source Code

libs/partners/perplexity/tests/unit_tests/test_output_parsers.py lines 183–188

class MockCompany(BaseModel):
    """Mock nested Pydantic model for testing."""

    company_name: str = Field(description="Company name")
    employees: list[MockPerson] = Field(description="List of employees")
    founded_year: int = Field(description="Year founded")

Frequently Asked Questions

What is the MockCompany class?
MockCompany is a class in the langchain codebase, defined in libs/partners/perplexity/tests/unit_tests/test_output_parsers.py.
Where is MockCompany defined?
MockCompany is defined in libs/partners/perplexity/tests/unit_tests/test_output_parsers.py at line 183.

Analyze Your Own Codebase

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

Try Supermodel Free