Home / Function/ test_interfaces() — langchain Function Reference

test_interfaces() — langchain Function Reference

Architecture documentation for the test_interfaces() function in test_history.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  67d492b8_4f9b_6642_5851_ac3fb64b226f["test_interfaces()"]
  0af0dfde_fe33_f3e5_b5e6_a3d18260dc67["test_history.py"]
  67d492b8_4f9b_6642_5851_ac3fb64b226f -->|defined in| 0af0dfde_fe33_f3e5_b5e6_a3d18260dc67
  style 67d492b8_4f9b_6642_5851_ac3fb64b226f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_history.py lines 30–35

def test_interfaces() -> None:
    history = InMemoryChatMessageHistory()
    history.add_message(SystemMessage(content="system"))
    history.add_message(HumanMessage(content="human 1"))
    history.add_message(AIMessage(content="ai"))
    assert str(history) == "System: system\nHuman: human 1\nAI: ai"

Domain

Subdomains

Frequently Asked Questions

What does test_interfaces() do?
test_interfaces() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_history.py.
Where is test_interfaces() defined?
test_interfaces() is defined in libs/core/tests/unit_tests/runnables/test_history.py at line 30.

Analyze Your Own Codebase

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

Try Supermodel Free