test_to_model_kwargs_strict() — langchain Function Reference
Architecture documentation for the test_to_model_kwargs_strict() function in test_responses.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b602ac1a_ba49_d9c3_b538_5e72e5c579e8["test_to_model_kwargs_strict()"] 6ca1af52_857f_2e7b_78f5_67116eab30df["TestProviderStrategy"] b602ac1a_ba49_d9c3_b538_5e72e5c579e8 -->|defined in| 6ca1af52_857f_2e7b_78f5_67116eab30df style b602ac1a_ba49_d9c3_b538_5e72e5c579e8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/test_responses.py lines 106–131
def test_to_model_kwargs_strict(self) -> None:
strategy_default = ProviderStrategy(schema=_TestModel, strict=True)
assert strategy_default.to_model_kwargs() == {
"response_format": {
"json_schema": {
"name": "_TestModel",
"schema": {
"description": "A test model for structured output.",
"properties": {
"age": {"title": "Age", "type": "integer"},
"email": {
"default": "default@example.com",
"title": "Email",
"type": "string",
},
"name": {"title": "Name", "type": "string"},
},
"required": ["name", "age"],
"title": "_TestModel",
"type": "object",
},
"strict": True,
},
"type": "json_schema",
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_to_model_kwargs_strict() do?
test_to_model_kwargs_strict() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/test_responses.py.
Where is test_to_model_kwargs_strict() defined?
test_to_model_kwargs_strict() is defined in libs/langchain_v1/tests/unit_tests/agents/test_responses.py at line 106.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free