Documentation
¶
Overview ¶
Package workbench is the Agent Workbench: a Surface module for making and improving Nanite agents. An agent is an agent directory (libs agent/agentdir: agent.md, host.yaml, .mcp.json, permissions.yaml, providers.yaml, skills/, context/, variants/) kept in a library, with the Workbench's own sidecar beside it: steering (reflexes, triggers, presets), host options, versions, eval suites, runs and improvement proposals.
The owner creates agents from templates or imports them (an archive, or a directory copied read-only), edits each part with validation on every save (agentdir.Load and Nanite's own rules), keeps every saved state as a version, exports an agent as an archive, runs eval suites through Nanite's eval harness against the app's model gateway (only when the owner starts a run, within a dollar cap and token budgets), asks a model for edits that would fix the failures, accepts or rejects each, and runs again to compare.
Everything Nanite-specific is behind Runtime (runtime.go). See README.md for the formats.
Index ¶
- Constants
- Variables
- type Agent
- type AgentView
- type Bundle
- type Caps
- type Case
- type CaseCompare
- type CaseOutput
- type CaseResult
- type Comparison
- type DiffLine
- type Edit
- type ErrInvalid
- type Estimate
- type Exchange
- type FileCheck
- type FileDiff
- type Grader
- type GraderResult
- type JSONCheck
- type Library
- func (l *Library) AgentDir(id string) (string, error)
- func (l *Library) Create(id string, t Tree, meta Meta, note, author string) (Agent, Report, error)
- func (l *Library) Delete(id string) (string, error)
- func (l *Library) FreeID(want string) (string, error)
- func (l *Library) Get(id string) (Agent, error)
- func (l *Library) List() ([]Agent, error)
- func (l *Library) Recover() error
- func (l *Library) Rollback(id string, n int, author string) (Version, Report, error)
- func (l *Library) Root() (string, error)
- func (l *Library) Save(id string, t Tree, base, note, author string) (Version, Report, error)
- func (l *Library) Sidecar(id string) (string, error)
- func (l *Library) Tree(id string) (Tree, error)
- func (l *Library) VersionTree(id string, n int) (Tree, error)
- func (l *Library) Versions(id string) ([]Version, error)
- type Manifest
- type Meta
- type Options
- type Outcome
- type Preview
- type PreviewSlot
- type Problem
- type Proposal
- type ProposeEstimate
- type Report
- type Run
- type RunInfo
- type RunOutput
- type RunSpec
- type Runner
- func (x *Runner) Cancel(runID string) bool
- func (x *Runner) Compare(agent, a, b string) (Comparison, error)
- func (x *Runner) Decide(agent, propID string, n int, accept bool) (Proposal, error)
- func (x *Runner) DeleteSuite(id, name string) error
- func (x *Runner) Estimate(ctx context.Context, id, suiteName string, want Caps) (Estimate, error)
- func (x *Runner) EstimatePropose(ctx context.Context, agent, runID string) (ProposeEstimate, error)
- func (x *Runner) GetProposal(agent, id string) (Proposal, error)
- func (x *Runner) GetRun(agent, runID string) (Run, error)
- func (x *Runner) Proposals(agent string) ([]Proposal, error)
- func (x *Runner) Propose(ctx context.Context, agent, runID string) (Proposal, error)
- func (x *Runner) Runs(agent string) ([]RunInfo, error)
- func (x *Runner) SaveSuite(id string, raw []byte) (Suite, error)
- func (x *Runner) Start(ctx context.Context, agent, suiteName, mode string, want Caps, previous string) (Run, error)
- func (x *Runner) Suites(id string) ([]SuiteInfo, error)
- func (x *Runner) Wait()
- type Runtime
- type ScanFinding
- type ScriptStep
- type Steering
- type Stub
- type StubResult
- type Suite
- type SuiteInfo
- type Summary
- type Template
- type ToolCheck
- type ToolUse
- type Tree
- type Version
Constants ¶
const WorkbenchVersion = "0.1.0"
WorkbenchVersion is the Workbench's version, written into each export's manifest.
Variables ¶
var ( // ErrNotFound: no agent with that id. ErrNotFound = errors.New("workbench: no such agent") // ErrExists: an agent with that id is already in the library. ErrExists = errors.New("workbench: an agent with that id already exists") )
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
Meta
Name string `json:"name"`
Description string `json:"description,omitempty"`
Digest string `json:"digest"`
Version int `json:"version"`
Updated string `json:"updated"`
OK bool `json:"ok"`
}
Agent is an agent as the library lists it.
type AgentView ¶
type AgentView struct {
Agent Agent `json:"agent"`
Files map[string]string `json:"files"`
Report Report `json:"report"`
Versions []Version `json:"versions"`
Dir string `json:"dir"`
}
AgentView is an agent as the editor loads it.
type Bundle ¶
type Bundle struct {
Tree Tree
Suites map[string][]byte
Manifest *Manifest
// Skipped are entries that are not part of an agent (state, notes), left out.
Skipped []string
}
Bundle is what an archive holds: the tree, the eval suites and the manifest.
type Caps ¶
type Caps struct {
MaxUSD float64 `json:"max_usd"`
TurnTokens int `json:"turn_tokens"`
RunTokens int `json:"run_tokens"`
}
Caps bound a run.
type Case ¶
type Case struct {
ID string `yaml:"id" json:"id"`
// Turns are the owner's messages in order; the last is the task, the rest are sent first.
// Every turn but the last must be one line (Nanite's prelude takes one message a line).
Turns []string `yaml:"turns" json:"turns"`
// Fixtures are workspace files the agent can read (path: content).
Fixtures map[string]string `yaml:"fixtures,omitempty" json:"fixtures,omitempty"`
// Writes offers the file-writing tools (the case changes the workspace).
Writes bool `yaml:"writes,omitempty" json:"writes,omitempty"`
Stubs []Stub `yaml:"stubs,omitempty" json:"stubs,omitempty"`
// Script is what the stand-in model does in an offline run, step by step, for the last
// turn (earlier turns are answered "Noted."). Without one, an offline run answers once
// and stops. It is a harness check, not evidence about a model.
Script []ScriptStep `yaml:"script,omitempty" json:"script,omitempty"`
Graders []Grader `yaml:"graders" json:"graders"`
}
Case is one eval case.
type CaseCompare ¶
type CaseCompare struct {
ID string `json:"id"`
A *bool `json:"a,omitempty"`
B *bool `json:"b,omitempty"`
ATokens int `json:"a_tokens"`
BTokens int `json:"b_tokens"`
ASteps int `json:"a_steps"`
BSteps int `json:"b_steps"`
Change string `json:"change"` // fixed, broken, same, new, gone
}
CaseCompare is one case in two runs.
type CaseOutput ¶
type CaseOutput struct {
StubCalls map[string]int
ID string
Answer string
Graders []GraderResult
// Ran: the case reached grading. Why says why it did not, or why it failed.
Ran bool
Why string
Skipped string
Steps int
Tokens int
CostUSD float64
WallMS int64
}
CaseOutput is one case's run, before the rubric graders.
type CaseResult ¶
type CaseResult struct {
StubCalls map[string]int `json:"stub_calls,omitempty"`
ID string `json:"id"`
Pass bool `json:"pass"`
Why string `json:"why,omitempty"`
Skipped string `json:"skipped,omitempty"`
Graders []GraderResult `json:"graders"`
Answer string `json:"answer"`
Transcript []Exchange `json:"transcript"`
Steps int `json:"steps"`
Tokens int `json:"tokens"`
CostUSD float64 `json:"cost_usd"`
WallMS int64 `json:"wall_ms"`
}
CaseResult is one case's outcome.
type Comparison ¶
type Comparison struct {
A RunInfo `json:"a"`
B RunInfo `json:"b"`
Cases []CaseCompare `json:"cases"`
// Fixed and Broken count cases that went from fail to pass, and from pass to fail.
Fixed int `json:"fixed"`
Broken int `json:"broken"`
}
Comparison is two runs side by side, case by case.
type Edit ¶
type Edit struct {
N int `json:"n"`
File string `json:"file"`
Diff string `json:"diff"`
Rationale string `json:"rationale"`
// Status is pending, accepted, rejected, invalid (does not apply or validate) or stale
// (the file changed since).
Status string `json:"status"`
Problem string `json:"problem,omitempty"`
// Version is the version an accepted edit was saved as.
Version int `json:"version,omitempty"`
}
Edit is one proposed change to one file.
type ErrInvalid ¶
type ErrInvalid struct{ Report Report }
ErrInvalid is a save refused because the files do not validate; the report says why.
func (*ErrInvalid) Error ¶
func (e *ErrInvalid) Error() string
type Estimate ¶
type Estimate struct {
Agent string `json:"agent"`
Suite string `json:"suite"`
Cases int `json:"cases"`
Model string `json:"model"`
Digest string `json:"digest"`
// PromptTokens is the assembled first request (system prompt and tools), estimated.
PromptTokens int `json:"prompt_tokens"`
// Tokens is the estimate for the whole run: per case, three model requests carrying the
// prompt, the case's turns and fixtures, and an output allowance each. Rubric graders
// add one request each.
Tokens int `json:"tokens"`
// Caps are the bounds a run starts with (the settings, unless the request names lower).
Caps Caps `json:"caps"`
// WorstUSD is the estimate priced at nanite/evals' conservative price, and never more
// than the dollar cap: what the run is expected to cost at most.
WorstUSD float64 `json:"worst_usd"`
Gateway string `json:"gateway"`
Ready bool `json:"ready"`
NotReady string `json:"not_ready,omitempty"`
}
Estimate is what a run would cost, worked out before it is started.
type Exchange ¶
type Exchange struct {
// Sent is what the model was last given: the owner's turn, or the tool results.
Sent string `json:"sent"`
// Reply is the model's text; Calls its tool calls.
Reply string `json:"reply,omitempty"`
Calls []ToolUse `json:"calls,omitempty"`
// Subtask marks a request of a subtask's conversation.
Subtask bool `json:"subtask,omitempty"`
Tokens int `json:"tokens"`
}
Exchange is one model request's last message and the reply.
type FileCheck ¶
type FileCheck struct {
Path string `yaml:"path" json:"path"`
Contains string `yaml:"contains,omitempty" json:"contains,omitempty"`
}
FileCheck is a workspace file that must exist and contain a text.
type FileDiff ¶
type FileDiff struct {
File string `json:"file"`
Change string `json:"change"` // added, removed, changed
Lines []DiffLine `json:"lines"`
}
FileDiff is one file's change between two states.
type Grader ¶
type Grader struct {
// Contains and NotContains look for text in the final answer (case-insensitive).
Contains string `yaml:"contains,omitempty" json:"contains,omitempty"`
NotContains string `yaml:"not_contains,omitempty" json:"not_contains,omitempty"`
// Regex matches the final answer (Go syntax; (?i) for case-insensitive).
Regex string `yaml:"regex,omitempty" json:"regex,omitempty"`
// AnswerLine checks the answer's last "ANSWER:" line contains this (Nanite evals'
// convention), case-insensitive.
AnswerLine string `yaml:"answer_line,omitempty" json:"answer_line,omitempty"`
// JSONPath reads the answer as JSON (or its first “`json block) and checks a value.
JSONPath *JSONCheck `yaml:"json_path,omitempty" json:"json_path,omitempty"`
// ToolCalled passes when the agent called the tool, with at least these arguments.
ToolCalled *ToolCheck `yaml:"tool_called,omitempty" json:"tool_called,omitempty"`
// NoToolCalled passes when no tool was called ({}), or not this one ({tool: bash}).
NoToolCalled *ToolCheck `yaml:"no_tool_called,omitempty" json:"no_tool_called,omitempty"`
// MaxSteps and MaxTokens bound the task turn: model steps, and tokens across the turn
// and its subtasks.
MaxSteps int `yaml:"max_steps,omitempty" json:"max_steps,omitempty"`
MaxTokens int `yaml:"max_tokens,omitempty" json:"max_tokens,omitempty"`
// File checks a workspace file after the run.
File *FileCheck `yaml:"file,omitempty" json:"file,omitempty"`
// Rubric is graded by a model: it is told the rubric, the task and the answer and
// answers PASS or FAIL. It costs a model call and counts against the run's budget.
Rubric string `yaml:"rubric,omitempty" json:"rubric,omitempty"`
}
Grader is one check of a case's outcome. Exactly one field is set.
type GraderResult ¶
type GraderResult struct {
Kind string `json:"kind"`
Pass bool `json:"pass"`
// Skipped: not graded (a rubric in an offline run); it does not count either way.
Skipped bool `json:"skipped,omitempty"`
Detail string `json:"detail,omitempty"`
}
GraderResult is one grader's verdict.
type JSONCheck ¶
type JSONCheck struct {
Path string `yaml:"path" json:"path"`
Equals any `yaml:"equals,omitempty" json:"equals,omitempty"`
Exists *bool `yaml:"exists,omitempty" json:"exists,omitempty"`
// HasEquals records that equals was given, so that equals: null is a check for null.
HasEquals bool `yaml:"-" json:"has_equals,omitempty"`
}
JSONCheck is a value at a path in the answer read as JSON: "$.a.b[0]" or "a.b.0". equals compares the value (equals: null wants a JSON null); exists: false wants the path absent; with neither, the path must exist.
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
Library keeps agents under a root directory.
func NewLibrary ¶
NewLibrary returns a library whose root is read from root at each use (a live setting).
func (*Library) Create ¶
Create adds a new agent with the given files, which must validate. It records version 1.
func (*Library) Recover ¶
Recover puts the library right after a crash: an agent directory left aside by an older Workbench's directory swap is put back, and temporary files of an interrupted write are removed. Only the library's own leftovers are touched.
func (*Library) Save ¶
Save replaces an agent's authored files with t when t validates, keeping every saved state in its versions. Only authored files are written or removed. base, when not empty, is the digest the caller edited from; a save over a newer state is refused.
func (*Library) VersionTree ¶
VersionTree reads the files of version n.
type Manifest ¶
type Manifest struct {
Format int `json:"workbench_format"`
Name string `json:"name"`
ID string `json:"id"`
Digest string `json:"digest"`
AgentdirDigest string `json:"agentdir_digest,omitempty"`
Created string `json:"created"`
WorkbenchVersion string `json:"workbench_version"`
Source string `json:"source,omitempty"`
Version int `json:"version,omitempty"`
Files []string `json:"files"`
Suites []string `json:"suites,omitempty"`
}
Manifest is workbench.json.
type Meta ¶
type Meta struct {
ID string `json:"id"`
Created string `json:"created"`
Source string `json:"source"` // template:<name>, import:<archive>, dir:<path>, duplicate:<id>
Template string `json:"template,omitempty"`
}
Meta is what the library keeps about an agent besides its files.
type Options ¶
type Options struct {
Format int `json:"workbench_format"`
// CompactAt is agent.Options.CompactAt: the request size in tokens (system blocks, tools
// and conversation) at which the conversation is compacted. 0: 80% of the model's
// context window.
CompactAt int `json:"compact_at,omitempty"`
}
Options are runtime options: settings Nanite takes only in code (agent.Options), with no agent-directory file yet. The Workbench keeps them in its sidecar (workbench/options.json) and passes them when it runs the agent (eval runs); a host that opens the agent would pass them the same way. Of them, only CompactAt is exposed: slot budgets and placement are the engine's own.
type Outcome ¶
type Outcome struct {
Answer string
Workspace string // the run's copy of the workspace
Calls []ToolUse
Steps int
Tokens int
// ReadFile reads a workspace file; nil reads from Workspace.
ReadFile func(rel string) ([]byte, error)
}
Outcome is what a case's graders look at.
type Preview ¶
type Preview struct {
System string `json:"system,omitempty"`
Slots []PreviewSlot `json:"slots"`
Tools []string `json:"tools"`
Tokens int `json:"tokens"`
}
Preview is an agent's assembled first request.
type PreviewSlot ¶
type PreviewSlot struct {
Name string `json:"name"`
Content string `json:"content"`
Tokens int `json:"tokens"`
ReadOnly bool `json:"read_only"` // engine-owned (the base prompt): shown, not edited
}
PreviewSlot is one block of the system prompt.
type Problem ¶
type Problem struct {
File string `json:"file,omitempty"`
Message string `json:"message"`
Severity string `json:"severity"` // error or warning
}
Problem is one thing wrong (or worth knowing) about an agent's files.
type Proposal ¶
type Proposal struct {
ID string `json:"id"`
Agent string `json:"agent"`
Run string `json:"run"`
Digest string `json:"digest"`
Created string `json:"created"`
Model string `json:"model"`
Tokens int `json:"tokens"`
// Error is set when the model's reply could not be read.
Error string `json:"error,omitempty"`
Items []Edit `json:"items"`
}
Proposal is one improvement request's outcome: a set of edits for the owner to review.
type ProposeEstimate ¶
type ProposeEstimate struct {
Model string `json:"model"`
InputTokens int `json:"input_tokens"`
MaxOutput int `json:"max_output"`
WorstUSD float64 `json:"worst_usd"`
CapUSD float64 `json:"cap_usd"`
Failed int `json:"failed"`
}
ProposeEstimate is what a proposal would cost, worked out before the owner agrees.
type Report ¶
type Report struct {
OK bool `json:"ok"`
// Digest is the Workbench's digest of every authored and sidecar file (Tree.Digest);
// AgentdirDigest is agentdir.Load's, over the files agentdir reads.
Digest string `json:"digest"`
AgentdirDigest string `json:"agentdir_digest,omitempty"`
Problems []Problem `json:"problems"`
// Summary is what the files define, for the page.
Summary *Summary `json:"summary,omitempty"`
}
Report is the outcome of validating an agent.
func Validate ¶
Validate checks a tree as Nanite will read it: agentdir.Load over the directory, then the files agentdir does not read (variants/*.md and providers.yaml, as Nanite parses them), the limits Nanite enforces when the agent opens, the sidecar files, and literal secrets where only references belong.
type Run ¶
type Run struct {
ID string `json:"id"`
Agent string `json:"agent"`
Suite string `json:"suite"`
Digest string `json:"digest"`
Version int `json:"version"`
Model string `json:"model"`
Started string `json:"started"`
Finished string `json:"finished,omitempty"`
// Status is running, done, stopped (a cap or the budget ended it) or failed.
Status string `json:"status"`
Stopped string `json:"stopped,omitempty"`
SpentUSD float64 `json:"spent_usd"`
Tokens int `json:"tokens"`
Caps Caps `json:"caps"`
Passed int `json:"passed"`
Failed int `json:"failed"`
Cases []CaseResult `json:"cases"`
// Previous is the run this one re-ran, for the comparison.
Previous string `json:"previous,omitempty"`
// Mode is offline (each case's script stands in for the model: a harness check, no
// model is called, nothing is spent) or live (the app's gateway; costs money).
Mode string `json:"mode"`
}
Run is one eval run, as stored in runs/<id>.json.
type RunInfo ¶
type RunInfo struct {
ID string `json:"id"`
Mode string `json:"mode"`
Suite string `json:"suite"`
Digest string `json:"digest"`
Version int `json:"version"`
Status string `json:"status"`
Started string `json:"started"`
Passed int `json:"passed"`
Failed int `json:"failed"`
Tokens int `json:"tokens"`
SpentUSD float64 `json:"spent_usd"`
Stopped string `json:"stopped,omitempty"`
Previous string `json:"previous,omitempty"`
}
RunInfo is a run as listed (no transcripts).
type RunOutput ¶
type RunOutput struct {
Model string
SpentUSD float64
// Stopped says why the run ended early, if it did.
Stopped string
Cases []CaseOutput
}
RunOutput is what a suite run produced.
type RunSpec ¶
type RunSpec struct {
Tree Tree
Suite Suite
// Model is written into the run's host.yaml for every case.
Model string
// Provider makes the model provider for one case. Every request of the case, its
// subtasks' included, goes through it.
Provider func(caseID string) llmcontracts.Provider
// MaxUSD caps the whole run's estimated spend (nanite/evals' dollar cap, priced at its
// conservative price). Required: a run is never uncapped.
MaxUSD float64
// TurnTokens caps one case's task turn, its subtasks included.
TurnTokens int
// Timeout bounds one case.
Timeout time.Duration
// Progress, when set, is told each case's id once it is graded.
Progress func(caseID string)
}
RunSpec says what to run and within what bounds.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner keeps suites and runs for the library's agents.
func (*Runner) Compare ¶
func (x *Runner) Compare(agent, a, b string) (Comparison, error)
Compare compares two runs of an agent.
func (*Runner) Decide ¶
Decide accepts or rejects one edit of a proposal. Accepting applies it to the agent as it is now and saves a new version. Only the owner decides: this is not an agent tool.
func (*Runner) DeleteSuite ¶
DeleteSuite removes a suite.
func (*Runner) EstimatePropose ¶
EstimatePropose works out a proposal's size and worst cost without calling a model.
func (*Runner) GetProposal ¶
GetProposal reads a proposal.
func (*Runner) Propose ¶
Propose asks the model for edits that would fix a run's failures. It is a model call: the owner's action only (the page, or a confirm-level tool).
func (*Runner) Start ¶
func (x *Runner) Start(ctx context.Context, agent, suiteName, mode string, want Caps, previous string) (Run, error)
Start begins a run and returns it while it runs; it is saved as it goes and when done. The caller has already asked the owner: the page's Run button, or a confirm-level tool.
mode is "offline" (the default: no model is called) or "live".
type Runtime ¶
type Runtime interface {
// RunSuite runs a suite's cases against an agent's files, through the model the spec
// names, within its caps, and returns each case's outcome for grading.
RunSuite(ctx context.Context, spec RunSpec) (RunOutput, error)
// Preview assembles the agent's first request without calling a model: the system
// prompt slot by slot (Nanite's base prompt included) and the tools offered.
Preview(ctx context.Context, t Tree) (Preview, error)
}
Runtime is what the Workbench needs from the agent runtime.
type ScanFinding ¶
type ScanFinding struct {
File string `json:"file"`
Line int `json:"line"`
What string `json:"what"`
Refuse bool `json:"refuse"` // a high-confidence shape: an export is refused
}
ScanFinding is a credential-like text in one of the agent's files.
type ScriptStep ¶
type ScriptStep struct {
Say string `yaml:"say,omitempty" json:"say,omitempty"`
Calls []ToolCheck `yaml:"calls,omitempty" json:"calls,omitempty"`
}
ScriptStep is one stand-in model response: tool calls, or a final answer.
type Steering ¶
type Steering struct {
// Format is the sidecar format's version.
Format int `json:"workbench_format"`
Presets []steer.Preset `json:"presets,omitempty"`
Reflexes []steer.Reflex `json:"reflexes,omitempty"`
}
Steering is Workbench's sidecar configuration, applied through Nanite's agent.Options.Steering in eval runs.
type Stub ¶
type Stub struct {
Name string `yaml:"name" json:"name"`
Description string `yaml:"description" json:"description"`
Schema map[string]any `yaml:"schema,omitempty" json:"schema,omitempty"`
ReadOnly bool `yaml:"read_only,omitempty" json:"read_only,omitempty"`
Results []StubResult `yaml:"results" json:"results"`
}
Stub is the YAML/JSON editing form of a Nanite eval stub. Schema is an object so YAML authors need not encode a JSON string inside their suite.
type StubResult ¶
type Suite ¶
type Suite struct {
Name string `yaml:"name" json:"name"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
// Mode is the Nanite evals arm the cases run in: direct (the default; the agent does the
// work itself) or subtask (the subtask tool is offered too).
Mode string `yaml:"mode,omitempty" json:"mode,omitempty"`
Cases []Case `yaml:"cases" json:"cases"`
}
Suite is one eval suite: workbench/evals/<name>.yaml in the agent's sidecar, outside the agent directory. Each case becomes a Nanite eval scenario (nanite/evals): the agent's directory, the case's fixtures as the workspace, its last turn as task.md and its earlier turns as prelude.txt. Its graders become the scenario's Grade.
func ParseSuite ¶
ParseSuite reads a suite strictly and checks it.
type SuiteInfo ¶
type SuiteInfo struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Cases int `json:"cases"`
Error string `json:"error,omitempty"`
Source string `json:"source"`
}
SuiteInfo is a suite as listed.
type Summary ¶
type Summary struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Kind string `json:"kind"`
Model string `json:"model,omitempty"`
Skills []string `json:"skills"`
Context []string `json:"context"`
Variants []string `json:"variants"`
MCPServers []string `json:"mcp_servers"`
Providers []string `json:"providers"`
Reflexes int `json:"reflexes"`
Presets int `json:"presets"`
}
Summary is what a valid agent defines.
type ToolCheck ¶
type ToolCheck struct {
Tool string `yaml:"tool,omitempty" json:"tool,omitempty"`
Args map[string]any `yaml:"args,omitempty" json:"args,omitempty"`
}
ToolCheck names a tool and, optionally, arguments its call must include.
type Tree ¶
Tree is an agent's authored files by relative path, sidecar files included.