Skip to main content

agrag.agents.tools.search.make_search_source_text_tool

make_search_source_text_tool(engine:'SearchEngine', ledger:'Ledger', *, filters:'SearchFilters | None' = None) -> Any

Build the search_source_text tool.

Parameters:

  • engine ('SearchEngine') – The SearchEngine the tool calls.
  • ledger ('Ledger') – The citation ledger for one run.
  • filters ('SearchFilters | None') – The caller's base scope, which the tool can only narrow.

Returns:

  • Any – A decorated tool function.