Home / Function/ test_multi_party_conversation() — langchain Function Reference

test_multi_party_conversation() — langchain Function Reference

Architecture documentation for the test_multi_party_conversation() function in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  2c568368_bdb7_ae5c_0996_e82449a61a49["test_multi_party_conversation()"]
  bd382a4e_442c_13ae_530c_6e34bc43623d["test_base.py"]
  2c568368_bdb7_ae5c_0996_e82449a61a49 -->|defined in| bd382a4e_442c_13ae_530c_6e34bc43623d
  style 2c568368_bdb7_ae5c_0996_e82449a61a49 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/chat_models/test_base.py lines 1091–1099

def test_multi_party_conversation() -> None:
    llm = ChatOpenAI(model="gpt-5-nano")
    messages = [
        HumanMessage("Hi, I have black hair.", name="Alice"),
        HumanMessage("Hi, I have brown hair.", name="Bob"),
        HumanMessage("Who just spoke?", name="Charlie"),
    ]
    response = llm.invoke(messages)
    assert "Bob" in response.content

Domain

Subdomains

Frequently Asked Questions

What does test_multi_party_conversation() do?
test_multi_party_conversation() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py.
Where is test_multi_party_conversation() defined?
test_multi_party_conversation() is defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py at line 1091.

Analyze Your Own Codebase

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

Try Supermodel Free