struct

Smith::Agents::Definition

Inherits Struct < Value < Object

A specialised subagent, defined in a markdown file rather than compiled in.

Flat files rather than the directory-per-item layout skills use: an agent is one definition, not a bundle of a file plus its trimmings.

Constants

INSPECT_TOOLS = ["read_file", "grep", "glob"] of ::String

The read-only set is what Mode::Inspect has always meant; the work set adds the mutating tools. A definition's own tools: overrides both.

WORK_TOOLS = INSPECT_TOOLS + (["bash", "write_file", "edit_file"] of ::String)

Constructors

new(name : String, description : String, system_prompt : String, path : String, tools : Array(String) | Nil = nil, model : String | Nil = nil, provider : String | Nil = nil, mode : Subagents::Mode = Subagents::Mode::Work)
Source

Instance methods

description
Source
mode
Source
model
Source
name
Source
path
Source
provider
Source
system_prompt
Source
tool_names
Source
tools
Source