test_valid_action_and_action_input_parse() — langchain Function Reference
Architecture documentation for the test_valid_action_and_action_input_parse() function in test_mrkl_output_parser.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bd49333e_891f_c73f_36f4_250e7c646446["test_valid_action_and_action_input_parse()"] 0be9c738_c626_f1e6_d88c_a34315fe9090["test_mrkl_output_parser.py"] bd49333e_891f_c73f_36f4_250e7c646446 -->|defined in| 0be9c738_c626_f1e6_d88c_a34315fe9090 style bd49333e_891f_c73f_36f4_250e7c646446 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/test_mrkl_output_parser.py lines 14–21
def test_valid_action_and_action_input_parse() -> None:
llm_output = """I can use the `foo` tool to achieve the goal.
Action: foo
Action Input: bar"""
agent_action: AgentAction = mrkl_output_parser.parse(llm_output) # type: ignore[assignment]
assert agent_action.tool == "foo"
assert agent_action.tool_input == "bar"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_valid_action_and_action_input_parse() do?
test_valid_action_and_action_input_parse() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/test_mrkl_output_parser.py.
Where is test_valid_action_and_action_input_parse() defined?
test_valid_action_and_action_input_parse() is defined in libs/langchain/tests/unit_tests/agents/test_mrkl_output_parser.py at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free