as Tools
fun asTools(router: RetrievalRouter, projectionRecordStore: ProjectionRecordStore, collectorRunner: CollectorRunner, contextId: <Error class: unknown class>): List<<Error class: unknown class>>
Create Tool instances exposing the discovery surface.
The returned tools inherit the router's context scope and the supplied contextId; they can be registered with an agent's tool set or an MCP server, e.g. alongside Memory and GraphQueryTools.
val router = RetrievalRouter(store, graphQuery, contextId)
val tools = DiscoveryTools.asTools(router, projectionRecordStore, collectorRunner, contextId)Content copied to clipboard