Skip to main content

Module tools

Module tools 

Source
Expand description

Discrete, typed corpus-interaction tools exposed to a rig Agent.

Each tool is a thin, strongly-typed wrapper over crate::engine that runs the blocking engine work on a worker thread under a wall-clock timeout. The tools are intentionally narrow (search / find / read / list) rather than a single “run a shell command” tool: bounded, structured commands are what state-of-the-art agentic-search systems converged on, and they remove the shell-injection surface entirely.

Structs§

CorpusTools
Bundle of the four corpus tools, all sharing one CorpusRoot.
FindArgs
Arguments for FindTool.
FindTool
Locate files by a glob over their corpus-relative path.
ListArgs
Arguments for ListTool.
ListTool
List the immediate entries of a corpus directory.
ReadArgs
Arguments for ReadTool.
ReadTool
Read a bounded, line-numbered window from one file.
SearchArgs
Arguments for SearchTool.
SearchTool
Regex search across the corpus, returning file:line evidence.