Expand description
Built-in coding tools for the Astrid agent runtime.
Provides 9 tools as direct Rust function calls (not MCP) for the hot-path coding operations: read, write, edit, search, execute, and identity.
Re-exports§
pub use spark::SparkConfig;
Modules§
- spark
- Spark identity configuration — the agent’s living self-description.
Structs§
- Bash
Tool - Built-in tool for executing bash commands.
- Edit
File Tool - Built-in tool for editing files via string replacement.
- Glob
Tool - Built-in tool for finding files by glob pattern.
- Grep
Tool - Built-in tool for searching file contents.
- List
Directory Tool - Built-in tool for listing directory contents.
- Read
File Tool - Built-in tool for reading files.
- Spark
Tool - Built-in tool for reading and evolving the agent’s spark identity.
- SubAgent
Request - Request to spawn a sub-agent.
- SubAgent
Result - Result returned by a completed sub-agent.
- Task
Tool - Tool for spawning sub-agent tasks.
- Tool
Context - Shared context available to all built-in tools.
- Tool
Registry - Registry of built-in tools for lookup and LLM definition export.
- Write
File Tool - Built-in tool for writing files.
Enums§
- Tool
Error - Tool execution errors.
Traits§
- Builtin
Tool - A built-in tool that executes directly in-process.
- SubAgent
Spawner - 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_
at_ char_ boundary - Truncate a string at the nearest char boundary at or before
max_bytes. - truncate_
output - Truncate output to stay within LLM context limits.
Type Aliases§
- Tool
Result - Result type for tool execution.