Home / Function/ test_abatch_tags() — langchain Function Reference

test_abatch_tags() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/partners/anthropic/tests/integration_tests/test_chat_models.py lines 175–184

async def test_abatch_tags() -> None:
    """Test batch tokens."""
    llm = ChatAnthropic(model_name=MODEL_NAME)  # type: ignore[call-arg, call-arg]

    result = await llm.abatch(
        ["I'm Pickle Rick", "I'm not Pickle Rick"],
        config={"tags": ["foo"]},
    )
    for token in result:
        assert isinstance(token.content, str)

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free