Home / Function/ test_search_tool_advanced_features() — langchain Function Reference

test_search_tool_advanced_features() — langchain Function Reference

Architecture documentation for the test_search_tool_advanced_features() function in test_search_tool.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  de8836fc_11a7_a4cc_b354_5513802763bb["test_search_tool_advanced_features()"]
  0ccbada3_8eaa_984f_8c98_db9279eb22a2["test_search_tool.py"]
  de8836fc_11a7_a4cc_b354_5513802763bb -->|defined in| 0ccbada3_8eaa_984f_8c98_db9279eb22a2
  style de8836fc_11a7_a4cc_b354_5513802763bb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/exa/tests/integration_tests/test_search_tool.py lines 16–34

def test_search_tool_advanced_features() -> None:
    """Test advanced features of the Exa search tool."""
    tool = ExaSearchResults()
    res = tool.invoke(
        {
            "query": "best time to visit japan",
            "num_results": 3,
            "text_contents_options": {"max_characters": 1000},
            "summary": True,
            "type": "auto",
        }
    )
    print(res)  # noqa: T201
    assert not isinstance(res, str)  # str means error for this tool
    assert len(res.results) == 3
    # Verify summary exists
    assert hasattr(res.results[0], "summary")
    # Verify text was limited
    assert len(res.results[0].text) <= 1000

Domain

Subdomains

Frequently Asked Questions

What does test_search_tool_advanced_features() do?
test_search_tool_advanced_features() is a function in the langchain codebase, defined in libs/partners/exa/tests/integration_tests/test_search_tool.py.
Where is test_search_tool_advanced_features() defined?
test_search_tool_advanced_features() is defined in libs/partners/exa/tests/integration_tests/test_search_tool.py at line 16.

Analyze Your Own Codebase

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

Try Supermodel Free