Home / Function/ test_tool_retry_initialization_with_mixed_tools() — langchain Function Reference

test_tool_retry_initialization_with_mixed_tools() — langchain Function Reference

Architecture documentation for the test_tool_retry_initialization_with_mixed_tools() function in test_tool_retry.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  b260b7a6_3d80_99f4_6fa5_c6015bcccce8["test_tool_retry_initialization_with_mixed_tools()"]
  c71b26df_821f_59ac_c7ef_3b96fcbe0d5b["test_tool_retry.py"]
  b260b7a6_3d80_99f4_6fa5_c6015bcccce8 -->|defined in| c71b26df_821f_59ac_c7ef_3b96fcbe0d5b
  style b260b7a6_3d80_99f4_6fa5_c6015bcccce8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_retry.py lines 116–126

def test_tool_retry_initialization_with_mixed_tools() -> None:
    """Test ToolRetryMiddleware initialization with mixed tool types."""
    retry = ToolRetryMiddleware(
        max_retries=2,
        tools=[working_tool, "failing_tool"],  # Mix of BaseTool and string
    )

    assert retry.max_retries == 2
    # Should handle both BaseTool instances and strings
    assert retry._tool_filter == ["working_tool", "failing_tool"]
    assert retry.tools == []

Domain

Subdomains

Frequently Asked Questions

What does test_tool_retry_initialization_with_mixed_tools() do?
test_tool_retry_initialization_with_mixed_tools() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_retry.py.
Where is test_tool_retry_initialization_with_mixed_tools() defined?
test_tool_retry_initialization_with_mixed_tools() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_tool_retry.py at line 116.

Analyze Your Own Codebase

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

Try Supermodel Free