Home / Function/ test_from_schema_spec_basic() — langchain Function Reference

test_from_schema_spec_basic() — langchain Function Reference

Architecture documentation for the test_from_schema_spec_basic() function in test_responses.py from the langchain codebase.

Function python LangChainCore Runnables calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  a44a50c6_1e9d_8261_327f_d4ece2879934["test_from_schema_spec_basic()"]
  eae7aba5_c5d1_1ce4_8c4e_fff8ccef9488["TestOutputToolBinding"]
  a44a50c6_1e9d_8261_327f_d4ece2879934 -->|defined in| eae7aba5_c5d1_1ce4_8c4e_fff8ccef9488
  ea5e31e8_67a3_9cbd_fdce_6c0e5647a27c["test_from_schema_spec_basic()"]
  ea5e31e8_67a3_9cbd_fdce_6c0e5647a27c -->|calls| a44a50c6_1e9d_8261_327f_d4ece2879934
  ea5e31e8_67a3_9cbd_fdce_6c0e5647a27c["test_from_schema_spec_basic()"]
  a44a50c6_1e9d_8261_327f_d4ece2879934 -->|calls| ea5e31e8_67a3_9cbd_fdce_6c0e5647a27c
  style a44a50c6_1e9d_8261_327f_d4ece2879934 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/test_responses.py lines 137–145

    def test_from_schema_spec_basic(self) -> None:
        """Test basic OutputToolBinding creation from SchemaSpec."""
        schema_spec = _SchemaSpec(schema=_TestModel)
        tool_binding = OutputToolBinding.from_schema_spec(schema_spec)

        assert tool_binding.schema == _TestModel
        assert tool_binding.schema_kind == "pydantic"
        assert tool_binding.tool is not None
        assert tool_binding.tool.name == "_TestModel"

Domain

Subdomains

Frequently Asked Questions

What does test_from_schema_spec_basic() do?
test_from_schema_spec_basic() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/test_responses.py.
Where is test_from_schema_spec_basic() defined?
test_from_schema_spec_basic() is defined in libs/langchain_v1/tests/unit_tests/agents/test_responses.py at line 137.
What does test_from_schema_spec_basic() call?
test_from_schema_spec_basic() calls 1 function(s): test_from_schema_spec_basic.
What calls test_from_schema_spec_basic()?
test_from_schema_spec_basic() is called by 1 function(s): test_from_schema_spec_basic.

Analyze Your Own Codebase

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

Try Supermodel Free