test_todo_middleware_default_prompts() — langchain Function Reference
Architecture documentation for the test_todo_middleware_default_prompts() function in test_todo.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 45d8a7e2_e928_1254_2dc0_0c3346b0173d["test_todo_middleware_default_prompts()"] d2f3bc2a_72aa_59d0_8558_330793eda010["test_todo.py"] 45d8a7e2_e928_1254_2dc0_0c3346b0173d -->|defined in| d2f3bc2a_72aa_59d0_8558_330793eda010 style 45d8a7e2_e928_1254_2dc0_0c3346b0173d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_todo.py lines 68–79
def test_todo_middleware_default_prompts() -> None:
"""Test that TodoListMiddleware uses default prompts when none provided."""
middleware = TodoListMiddleware()
# Verify default system prompt
assert middleware.system_prompt == WRITE_TODOS_SYSTEM_PROMPT
# Verify default tool description
assert middleware.tool_description == WRITE_TODOS_TOOL_DESCRIPTION
assert len(middleware.tools) == 1
tool = middleware.tools[0]
assert tool.description == WRITE_TODOS_TOOL_DESCRIPTION
Domain
Subdomains
Source
Frequently Asked Questions
What does test_todo_middleware_default_prompts() do?
test_todo_middleware_default_prompts() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_todo.py.
Where is test_todo_middleware_default_prompts() defined?
test_todo_middleware_default_prompts() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_todo.py at line 68.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free