test_agent_bad_action() — langchain Function Reference
Architecture documentation for the test_agent_bad_action() function in test_agent.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e78ae43f_ff72_c1f8_bbbb_e6e45b334c06["test_agent_bad_action()"] 47a7b285_8e60_f78f_282d_429958c446fa["test_agent.py"] e78ae43f_ff72_c1f8_bbbb_e6e45b334c06 -->|defined in| 47a7b285_8e60_f78f_282d_429958c446fa 14f78f65_e4e5_9e87_0c7c_292f4c2d21f0["_get_agent()"] e78ae43f_ff72_c1f8_bbbb_e6e45b334c06 -->|calls| 14f78f65_e4e5_9e87_0c7c_292f4c2d21f0 style e78ae43f_ff72_c1f8_bbbb_e6e45b334c06 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/test_agent.py lines 114–118
def test_agent_bad_action() -> None:
"""Test react chain when bad action given."""
agent = _get_agent()
output = agent.run("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.py.
Where is test_agent_bad_action() defined?
test_agent_bad_action() is defined in libs/langchain/tests/unit_tests/agents/test_agent.py at line 114.
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