Home / Function/ test_native_structured_output() — langchain Function Reference

test_native_structured_output() — langchain Function Reference

Architecture documentation for the test_native_structured_output() function in test_standard.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  548c41c6_0917_8fc3_bbfd_822025b4bbe3["test_native_structured_output()"]
  2880dbd6_e774_85c2_83e2_8529a7770a73["test_standard.py"]
  548c41c6_0917_8fc3_bbfd_822025b4bbe3 -->|defined in| 2880dbd6_e774_85c2_83e2_8529a7770a73
  741b5874_bfe3_cc5e_e16e_8a030f593b5f["chat_model_class()"]
  548c41c6_0917_8fc3_bbfd_822025b4bbe3 -->|calls| 741b5874_bfe3_cc5e_e16e_8a030f593b5f
  style 548c41c6_0917_8fc3_bbfd_822025b4bbe3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/tests/integration_tests/test_standard.py lines 172–177

def test_native_structured_output(
    schema_type: Literal["pydantic", "typeddict", "json_schema"],
) -> None:
    test_instance = NativeStructuredOutputTests()
    model = test_instance.chat_model_class(**test_instance.chat_model_params)
    NativeStructuredOutputTests().test_structured_output(model, schema_type)

Domain

Subdomains

Frequently Asked Questions

What does test_native_structured_output() do?
test_native_structured_output() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/integration_tests/test_standard.py.
Where is test_native_structured_output() defined?
test_native_structured_output() is defined in libs/partners/anthropic/tests/integration_tests/test_standard.py at line 172.
What does test_native_structured_output() call?
test_native_structured_output() calls 1 function(s): chat_model_class.

Analyze Your Own Codebase

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

Try Supermodel Free