Home / Function/ test_parse_with_language_without_a_new_line() — langchain Function Reference

test_parse_with_language_without_a_new_line() — langchain Function Reference

Architecture documentation for the test_parse_with_language_without_a_new_line() function in test_structured_chat.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  735f6ada_b6bb_b983_6c2c_176beecb52c7["test_parse_with_language_without_a_new_line()"]
  a890525c_8c6f_1157_9955_6e77e67c50fd["test_structured_chat.py"]
  735f6ada_b6bb_b983_6c2c_176beecb52c7 -->|defined in| a890525c_8c6f_1157_9955_6e77e67c50fd
  b13e411d_df46_adca_bd89_cc0401719dde["get_action_and_input()"]
  735f6ada_b6bb_b983_6c2c_176beecb52c7 -->|calls| b13e411d_df46_adca_bd89_cc0401719dde
  style 735f6ada_b6bb_b983_6c2c_176beecb52c7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/agents/test_structured_chat.py lines 92–101

def test_parse_with_language_without_a_new_line() -> None:
    llm_output = """I can use the `foo` tool to achieve the goal.

    Action:
    ```json{"action": "foo", "action_input": "bar"}```
    """
    # TODO: How should this be handled?
    output, log = get_action_and_input(llm_output)
    assert output == llm_output
    assert log == llm_output

Domain

Subdomains

Frequently Asked Questions

What does test_parse_with_language_without_a_new_line() do?
test_parse_with_language_without_a_new_line() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/test_structured_chat.py.
Where is test_parse_with_language_without_a_new_line() defined?
test_parse_with_language_without_a_new_line() is defined in libs/langchain/tests/unit_tests/agents/test_structured_chat.py at line 92.
What does test_parse_with_language_without_a_new_line() call?
test_parse_with_language_without_a_new_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