test_agent_bad_action() — langchain Function Reference
Architecture documentation for the test_agent_bad_action() function in test_agent_async.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 78621a5c_7ab7_b520_854c_ed21436db574["test_agent_bad_action()"] 663245d2_2254_328f_5cf8_4bbd36fb32cc["test_agent_async.py"] 78621a5c_7ab7_b520_854c_ed21436db574 -->|defined in| 663245d2_2254_328f_5cf8_4bbd36fb32cc 3f4a2a33_35f0_c575_3ea6_003b91ce484c["_get_agent()"] 78621a5c_7ab7_b520_854c_ed21436db574 -->|calls| 3f4a2a33_35f0_c575_3ea6_003b91ce484c style 78621a5c_7ab7_b520_854c_ed21436db574 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/test_agent_async.py lines 85–89
async def test_agent_bad_action() -> None:
"""Test react chain when bad action given."""
agent = _get_agent()
output = await agent.arun("when was langchain made")
assert output == "curses foiled again"
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_agent_bad_action() do?
test_agent_bad_action() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/test_agent_async.py.
Where is test_agent_bad_action() defined?
test_agent_bad_action() is defined in libs/langchain/tests/unit_tests/agents/test_agent_async.py at line 85.
What does test_agent_bad_action() call?
test_agent_bad_action() calls 1 function(s): _get_agent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free