test_agent_iterator_bad_action() — langchain Function Reference
Architecture documentation for the test_agent_iterator_bad_action() function in test_agent_iterator.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 7e20d0fa_5911_ee49_443d_fc737e7016ab["test_agent_iterator_bad_action()"] 2423e003_42f4_7c6a_3fba_30db54c07a0c["test_agent_iterator.py"] 7e20d0fa_5911_ee49_443d_fc737e7016ab -->|defined in| 2423e003_42f4_7c6a_3fba_30db54c07a0c style 7e20d0fa_5911_ee49_443d_fc737e7016ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/test_agent_iterator.py lines 19–27
def test_agent_iterator_bad_action() -> None:
"""Test react chain iterator when bad action given."""
agent = _get_agent()
agent_iter = agent.iter(inputs="when was langchain made")
outputs = list(agent_iter)
assert isinstance(outputs[-1], dict)
assert outputs[-1]["output"] == "curses foiled again"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_agent_iterator_bad_action() do?
test_agent_iterator_bad_action() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/test_agent_iterator.py.
Where is test_agent_iterator_bad_action() defined?
test_agent_iterator_bad_action() is defined in libs/langchain/tests/unit_tests/agents/test_agent_iterator.py at line 19.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free