test_async_dynamic_prompt_decorator() — langchain Function Reference
Architecture documentation for the test_async_dynamic_prompt_decorator() function in test_decorators.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5b030084_f16d_5416_fc6f_76ad0ae3b219["test_async_dynamic_prompt_decorator()"] 85a104a3_11cf_6539_d0c0_ba69a17a41d4["test_decorators.py"] 5b030084_f16d_5416_fc6f_76ad0ae3b219 -->|defined in| 85a104a3_11cf_6539_d0c0_ba69a17a41d4 style 5b030084_f16d_5416_fc6f_76ad0ae3b219 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_decorators.py lines 705–715
def test_async_dynamic_prompt_decorator() -> None:
"""Test dynamic_prompt decorator with async function."""
@dynamic_prompt
async def async_prompt(request: ModelRequest) -> str:
return "Async dynamic prompt"
assert isinstance(async_prompt, AgentMiddleware)
assert async_prompt.state_schema == AgentState
assert async_prompt.tools == []
assert async_prompt.__class__.__name__ == "async_prompt"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_async_dynamic_prompt_decorator() do?
test_async_dynamic_prompt_decorator() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_decorators.py.
Where is test_async_dynamic_prompt_decorator() defined?
test_async_dynamic_prompt_decorator() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_decorators.py at line 705.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free