Skip to main content

Crate astrid_tools

Crate astrid_tools 

Source
Expand description

Built-in coding tools for the Astrid agent runtime.

Provides 8 tools as direct Rust function calls (not MCP) for the hot-path coding operations: read, write, edit, search, and execute.

Structs§

BashTool
Built-in tool for executing bash commands.
EditFileTool
Built-in tool for editing files via string replacement.
GlobTool
Built-in tool for finding files by glob pattern.
GrepTool
Built-in tool for searching file contents.
ListDirectoryTool
Built-in tool for listing directory contents.
ReadFileTool
Built-in tool for reading files.
SubAgentRequest
Request to spawn a sub-agent.
SubAgentResult
Result returned by a completed sub-agent.
TaskTool
Tool for spawning sub-agent tasks.
ToolContext
Shared context available to all built-in tools.
ToolRegistry
Registry of built-in tools for lookup and LLM definition export.
WriteFileTool
Built-in tool for writing files.

Enums§

ToolError
Tool execution errors.

Traits§

BuiltinTool
A built-in tool that executes directly in-process.
SubAgentSpawner
Trait for spawning sub-agents from built-in tools.

Functions§

build_system_prompt
Build the complete system prompt for an agent session.
load_project_instructions
Load project instructions from the workspace and global config.
truncate_output
Truncate output to stay within LLM context limits.

Type Aliases§

ToolResult
Result type for tool execution.