Home / Function/ test_single_agent_action_observation() — langchain Function Reference

test_single_agent_action_observation() — langchain Function Reference

Architecture documentation for the test_single_agent_action_observation() function in test_log.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6c82c4d6_944e_7b9b_0bcf_9c71afa68184["test_single_agent_action_observation()"]
  60c70288_7962_a47f_d9f2_01467def64c3["test_log.py"]
  6c82c4d6_944e_7b9b_0bcf_9c71afa68184 -->|defined in| 60c70288_7962_a47f_d9f2_01467def64c3
  style 6c82c4d6_944e_7b9b_0bcf_9c71afa68184 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/agents/format_scratchpad/test_log.py lines 6–11

def test_single_agent_action_observation() -> None:
    intermediate_steps = [
        (AgentAction(tool="Tool1", tool_input="input1", log="Log1"), "Observation1"),
    ]
    expected_result = "Log1\nObservation: Observation1\nThought: "
    assert format_log_to_str(intermediate_steps) == expected_result

Domain

Subdomains

Frequently Asked Questions

What does test_single_agent_action_observation() do?
test_single_agent_action_observation() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/format_scratchpad/test_log.py.
Where is test_single_agent_action_observation() defined?
test_single_agent_action_observation() is defined in libs/langchain/tests/unit_tests/agents/format_scratchpad/test_log.py at line 6.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free