Home / Function/ test_create_agent_no_context_schema() — langchain Function Reference

test_create_agent_no_context_schema() — langchain Function Reference

Architecture documentation for the test_create_agent_no_context_schema() function in test_middleware_typing.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  ab7c09d5_4871_ae1c_b71b_b8b214704db3["test_create_agent_no_context_schema()"]
  689eac1f_5845_440c_f60b_988968e02ee6["test_middleware_typing.py"]
  ab7c09d5_4871_ae1c_b71b_b8b214704db3 -->|defined in| 689eac1f_5845_440c_f60b_988968e02ee6
  style ab7c09d5_4871_ae1c_b71b_b8b214704db3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_typing.py lines 239–250

def test_create_agent_no_context_schema(fake_model: GenericFakeChatModel) -> None:
    """Backwards compatible: No context_schema means ContextT=None."""
    agent: CompiledStateGraph[Any, None, Any, Any] = create_agent(
        model=fake_model,
        middleware=[
            BackwardsCompatibleMiddleware(),
            BackwardsCompatibleMiddleware2(),
            backwards_compatible_decorator,
        ],
        # No context_schema - backwards compatible
    )
    assert agent is not None

Domain

Subdomains

Frequently Asked Questions

What does test_create_agent_no_context_schema() do?
test_create_agent_no_context_schema() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_typing.py.
Where is test_create_agent_no_context_schema() defined?
test_create_agent_no_context_schema() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_typing.py at line 239.

Analyze Your Own Codebase

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

Try Supermodel Free