struct

Crig::ToolSet

Inherits Struct < Value < Object

ToolSet is the runtime collection used by agents and tool servers. It mirrors Rig's builder-first toolset API and keeps both static and embedding-backed tools under one interface.

Constructors

from_tools(tools : Enumerable(Crig::ToolDyn)) : self
Source
from_tools_boxed(tools : Enumerable(Crig::ToolDyn)) : self
Source

Class methods

builder

Create a fluent ToolSetBuilder, matching Rig's ToolSet::builder().

Source

Instance methods

add_tool(tool : Crig::ToolDyn) : Nil
Source
add_tool_boxed(tool : Crig::ToolDyn) : Nil
Source
add_tools(toolset : Crig::ToolSet) : Nil
Source
call(toolname : String, args : String) : String
Source
contains(toolname : String) : Bool
Source
delete_tool(tool_name : String) : Nil
Source
documents
Source
execute(toolname : String, args : String, context : Tool::ToolContext) : Tool::ToolResult
Source
get(toolname : String) : Crig::ToolDyn | Nil
Source
get_tool_definitions

ameba:disable Naming/AccessorMethodName

Source
schemas
Source
tools
Source