test_final_answer_before_parsable_action() — langchain Function Reference
Architecture documentation for the test_final_answer_before_parsable_action() function in test_mrkl_output_parser.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 75a594f3_bbe7_36d8_fd2b_67873b692f3f["test_final_answer_before_parsable_action()"] 0be9c738_c626_f1e6_d88c_a34315fe9090["test_mrkl_output_parser.py"] 75a594f3_bbe7_36d8_fd2b_67873b692f3f -->|defined in| 0be9c738_c626_f1e6_d88c_a34315fe9090 style 75a594f3_bbe7_36d8_fd2b_67873b692f3f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/test_mrkl_output_parser.py lines 56–66
def test_final_answer_before_parsable_action() -> None:
llm_output = """Final Answer: The best pizza to eat is margaritta
Action: foo
Action Input: bar
"""
agent_finish: AgentFinish = mrkl_output_parser.parse(llm_output) # type: ignore[assignment]
assert (
agent_finish.return_values.get("output")
== "The best pizza to eat is margaritta"
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_final_answer_before_parsable_action() do?
test_final_answer_before_parsable_action() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/test_mrkl_output_parser.py.
Where is test_final_answer_before_parsable_action() defined?
test_final_answer_before_parsable_action() is defined in libs/langchain/tests/unit_tests/agents/test_mrkl_output_parser.py at line 56.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free