Skip to main content

agrag.agents.tools.traversal.make_find_related_entities_tool

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

Build the find_related_entities 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 cannot widen and which also bounds the traversal, so a resolved entity cannot reach neighbours outside its caller's scope.

Returns:

  • Any – A decorated tool function.