Home / Function/ test_from_schema_spec_with_custom_name() — langchain Function Reference

test_from_schema_spec_with_custom_name() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/test_responses.py lines 147–151

    def test_from_schema_spec_with_custom_name(self) -> None:
        """Test OutputToolBinding creation with custom name."""
        schema_spec = _SchemaSpec(schema=_TestModel, name="custom_tool_name")
        tool_binding = OutputToolBinding.from_schema_spec(schema_spec)
        assert tool_binding.tool.name == "custom_tool_name"

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free