Skip to main content

registry

Function registry 

Source
pub fn registry() -> ToolRegistry
Expand description

Creates a ToolRegistry pre-populated with ShellExecTool.

This is the simplest way to add shell execution to an agent. The returned registry contains a single tool registered under the name shell.exec.

ยงExample

use agentkit_tool_shell::registry;

let reg = registry();
assert_eq!(reg.specs().len(), 1);
assert_eq!(reg.specs()[0].name.0, "shell.exec");