test_bad_action_input_line() — langchain Function Reference
Architecture documentation for the test_bad_action_input_line() function in test_mrkl.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 0656ca62_0e7d_1e2f_aa7d_f42144cb9521["test_bad_action_input_line()"] 11e4d0ce_1ab2_b50d_7115_96011ca80049["test_mrkl.py"] 0656ca62_0e7d_1e2f_aa7d_f42144cb9521 -->|defined in| 11e4d0ce_1ab2_b50d_7115_96011ca80049 893a0b31_0a99_6756_3281_2a5a05606fe2["get_action_and_input()"] 0656ca62_0e7d_1e2f_aa7d_f42144cb9521 -->|calls| 893a0b31_0a99_6756_3281_2a5a05606fe2 style 0656ca62_0e7d_1e2f_aa7d_f42144cb9521 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/test_mrkl.py lines 115–120
def test_bad_action_input_line() -> None:
"""Test handling when no action input found."""
llm_output = "Thought: I need to search for NBA\nAction: Search\nThought: NBA"
with pytest.raises(OutputParserException) as e_info:
get_action_and_input(llm_output)
assert e_info.value.observation is not None
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_bad_action_input_line() do?
test_bad_action_input_line() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/test_mrkl.py.
Where is test_bad_action_input_line() defined?
test_bad_action_input_line() is defined in libs/langchain/tests/unit_tests/agents/test_mrkl.py at line 115.
What does test_bad_action_input_line() call?
test_bad_action_input_line() calls 1 function(s): get_action_and_input.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free