test_parse_with_language() — langchain Function Reference
Architecture documentation for the test_parse_with_language() function in test_chat.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5eeade03_e2d1_a3a6_8a30_d48036aca668["test_parse_with_language()"] f5bec192_7de8_cc94_e8e5_efb1fe183808["test_chat.py"] 5eeade03_e2d1_a3a6_8a30_d48036aca668 -->|defined in| f5bec192_7de8_cc94_e8e5_efb1fe183808 944de1bd_501a_1d52_838f_49084107eecf["get_action_and_input()"] 5eeade03_e2d1_a3a6_8a30_d48036aca668 -->|calls| 944de1bd_501a_1d52_838f_49084107eecf style 5eeade03_e2d1_a3a6_8a30_d48036aca668 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/test_chat.py lines 17–30
def test_parse_with_language() -> None:
llm_output = """I can use the `foo` tool to achieve the goal.
Action:
```json
{
"action": "foo",
"action_input": "bar"
}
```
"""
action, action_input = get_action_and_input(llm_output)
assert action == "foo"
assert action_input == "bar"
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_parse_with_language() do?
test_parse_with_language() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/test_chat.py.
Where is test_parse_with_language() defined?
test_parse_with_language() is defined in libs/langchain/tests/unit_tests/agents/test_chat.py at line 17.
What does test_parse_with_language() call?
test_parse_with_language() 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