Home / Function/ test_from_schema_spec_with_model_docstring() — langchain Function Reference

test_from_schema_spec_with_model_docstring() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4bd4d609_46d5_e542_2a04_9724d9106dde["test_from_schema_spec_with_model_docstring()"]
  eae7aba5_c5d1_1ce4_8c4e_fff8ccef9488["TestOutputToolBinding"]
  4bd4d609_46d5_e542_2a04_9724d9106dde -->|defined in| eae7aba5_c5d1_1ce4_8c4e_fff8ccef9488
  style 4bd4d609_46d5_e542_2a04_9724d9106dde fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/test_responses.py lines 160–165

    def test_from_schema_spec_with_model_docstring(self) -> None:
        """Test OutputToolBinding creation using model docstring as description."""
        schema_spec = _SchemaSpec(schema=CustomModel)
        tool_binding = OutputToolBinding.from_schema_spec(schema_spec)

        assert tool_binding.tool.description == "Custom model with a custom docstring."

Domain

Subdomains

Frequently Asked Questions

What does test_from_schema_spec_with_model_docstring() do?
test_from_schema_spec_with_model_docstring() 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_with_model_docstring() defined?
test_from_schema_spec_with_model_docstring() is defined in libs/langchain_v1/tests/unit_tests/agents/test_responses.py at line 160.

Analyze Your Own Codebase

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

Try Supermodel Free