#[non_exhaustive]pub enum BuiltinTool {
Show 19 variants
ListDirectory,
SearchDirectory,
FindFile,
ViewFile,
CreateFile,
EditFile,
DeleteFile,
RenameFile,
RunCommand,
AskQuestion,
StartSubagent,
GenerateImage,
CallAgent,
CompileRustlite,
RunCartridge,
RenderHtml,
ConfigureAgent,
CurrentTime,
Finish,
}Expand description
Identifiers for the SDK’s built-in tools.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ListDirectory
List a directory’s contents.
SearchDirectory
Regex search within files.
FindFile
Find files by glob pattern.
ViewFile
Read a file’s contents.
CreateFile
Create a new file.
EditFile
Apply edits to an existing file.
DeleteFile
Delete a file or directory.
RenameFile
Rename or move a file.
RunCommand
Execute a shell command.
AskQuestion
Prompt the user with a question.
StartSubagent
Spawn a sub-agent.
GenerateImage
Generate an image via the image model.
CallAgent
Call another agent via inter-agent RPC.
CompileRustlite
Compile and run a rustlite program.
RunCartridge
Compile a rustlite cartridge and run it on the visual display.
RenderHtml
Render an HTML document onto the visual display (framebuffer).
ConfigureAgent
Read/update this agent’s own config manifest (system prompt + tool allowlist), or reset it to defaults.
CurrentTime
Get the current host wall-clock time (UNIX + ISO-8601 UTC).
Finish
Signal that the agent’s turn is complete.
Implementations§
Source§impl BuiltinTool
impl BuiltinTool
Sourcepub const ALL: &'static [BuiltinTool]
pub const ALL: &'static [BuiltinTool]
Every built-in tool variant.
Sourcepub const READ_ONLY: &'static [BuiltinTool]
pub const READ_ONLY: &'static [BuiltinTool]
Tools that only read state (no side effects).
Sourcepub const FILE_TOOLS: &'static [BuiltinTool]
pub const FILE_TOOLS: &'static [BuiltinTool]
Tools that operate on individual files.
Trait Implementations§
Source§impl Clone for BuiltinTool
impl Clone for BuiltinTool
Source§fn clone(&self) -> BuiltinTool
fn clone(&self) -> BuiltinTool
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more