test_get_action_and_input_newline() — langchain Function Reference
Architecture documentation for the test_get_action_and_input_newline() function in test_mrkl.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD faf042c2_aa83_0ffc_6300_7591a96f6d06["test_get_action_and_input_newline()"] 11e4d0ce_1ab2_b50d_7115_96011ca80049["test_mrkl.py"] faf042c2_aa83_0ffc_6300_7591a96f6d06 -->|defined in| 11e4d0ce_1ab2_b50d_7115_96011ca80049 893a0b31_0a99_6756_3281_2a5a05606fe2["get_action_and_input()"] faf042c2_aa83_0ffc_6300_7591a96f6d06 -->|calls| 893a0b31_0a99_6756_3281_2a5a05606fe2 style faf042c2_aa83_0ffc_6300_7591a96f6d06 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/test_mrkl.py lines 38–46
def test_get_action_and_input_newline() -> None:
"""Test getting an action from text where Action Input is a code snippet."""
llm_output = (
"Now I need to write a unittest for the function.\n\n"
"Action: Python\nAction Input:\n```\nimport unittest\n\nunittest.main()\n```"
)
action, action_input = get_action_and_input(llm_output)
assert action == "Python"
assert action_input == "```\nimport unittest\n\nunittest.main()\n```"
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_get_action_and_input_newline() do?
test_get_action_and_input_newline() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/test_mrkl.py.
Where is test_get_action_and_input_newline() defined?
test_get_action_and_input_newline() is defined in libs/langchain/tests/unit_tests/agents/test_mrkl.py at line 38.
What does test_get_action_and_input_newline() call?
test_get_action_and_input_newline() 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