Home / Function/ test_anthropic_call() — langchain Function Reference

test_anthropic_call() — langchain Function Reference

Architecture documentation for the test_anthropic_call() function in test_chat_models.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  37e2768a_8aa3_4cb4_821a_9595edd3ee41["test_anthropic_call()"]
  f27640dd_3870_5548_d153_f9504ae1021f["test_chat_models.py"]
  37e2768a_8aa3_4cb4_821a_9595edd3ee41 -->|defined in| f27640dd_3870_5548_d153_f9504ae1021f
  style 37e2768a_8aa3_4cb4_821a_9595edd3ee41 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/tests/integration_tests/test_chat_models.py lines 330–336

def test_anthropic_call() -> None:
    """Test valid call to anthropic."""
    chat = ChatAnthropic(model=MODEL_NAME)  # type: ignore[call-arg]
    message = HumanMessage(content="Hello")
    response = chat.invoke([message])
    assert isinstance(response, AIMessage)
    assert isinstance(response.content, str)

Domain

Subdomains

Frequently Asked Questions

What does test_anthropic_call() do?
test_anthropic_call() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/integration_tests/test_chat_models.py.
Where is test_anthropic_call() defined?
test_anthropic_call() is defined in libs/partners/anthropic/tests/integration_tests/test_chat_models.py at line 330.

Analyze Your Own Codebase

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

Try Supermodel Free