Source code for tooluniverse.tools.MultiAgentLiteratureSearch

"""
MultiAgentLiteratureSearch

Multi-agent literature search system that uses AI agents to analyze intent, extract keywords, exe...
"""

from typing import Any, Optional, Callable
from ._shared_client import get_shared_client


[docs] def MultiAgentLiteratureSearch( query: str, max_iterations: int, quality_threshold: float, *, stream_callback: Optional[Callable[[str], None]] = None, use_cache: bool = False, validate: bool = True, ) -> Optional[dict[str, Any]]: """ Multi-agent literature search system that uses AI agents to analyze intent, extract keywords, exe... Parameters ---------- query : str The research query to search for max_iterations : int Maximum number of iterations (default: 3) quality_threshold : float Quality threshold for completion (default: 0.7) stream_callback : Callable, optional Callback for streaming output use_cache : bool, default False Enable caching validate : bool, default True Validate parameters Returns ------- Optional[dict[str, Any]] """ # Handle mutable defaults to avoid B006 linting error return get_shared_client().run_one_function( { "name": "MultiAgentLiteratureSearch", "arguments": { "query": query, "max_iterations": max_iterations, "quality_threshold": quality_threshold, }, }, stream_callback=stream_callback, use_cache=use_cache, validate=validate, )
__all__ = ["MultiAgentLiteratureSearch"]