Home / Function/ test_batch_tags() — langchain Function Reference

test_batch_tags() — langchain Function Reference

Architecture documentation for the test_batch_tags() function in test_llms.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6bc7be5a_31ad_21ed_6303_ca8346a679bb["test_batch_tags()"]
  b375279a_4970_f212_b93f_b3ffc97dc9d8["test_llms.py"]
  6bc7be5a_31ad_21ed_6303_ca8346a679bb -->|defined in| b375279a_4970_f212_b93f_b3ffc97dc9d8
  style 6bc7be5a_31ad_21ed_6303_ca8346a679bb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/ollama/tests/integration_tests/test_llms.py lines 49–57

def test_batch_tags() -> None:
    """Test batch sync token generation with tags."""
    llm = OllamaLLM(model=MODEL_NAME)

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

Domain

Subdomains

Frequently Asked Questions

What does test_batch_tags() do?
test_batch_tags() is a function in the langchain codebase, defined in libs/partners/ollama/tests/integration_tests/test_llms.py.
Where is test_batch_tags() defined?
test_batch_tags() is defined in libs/partners/ollama/tests/integration_tests/test_llms.py at line 49.

Analyze Your Own Codebase

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

Try Supermodel Free