mode

package
v0.0.69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package mode defines the SDK-native mode template shape.

A mode template is a named runtime preset for the parent agent: prompt instructions, model routing, run constraints, autonomy, and tool access. Specialist sub-agents are configured separately through the role catalog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Constraints

type Constraints struct {
	MaxTurns               int
	SubAgentMaxTurns       int
	MaxConcurrentSubAgents int
	MaxRetries             int
	MaxRuntimeMinutes      int
}

type ModelRouting

type ModelRouting struct {
	DefaultModel   string
	FallbackModels []string
	ReasoningLevel string
	TextVerbosity  string
	RoleOverrides  map[string]RoleModelRouting
}

type RoleModelRouting

type RoleModelRouting struct {
	Model          string
	FallbackModels []string
	ReasoningLevel string
	TextVerbosity  string
}

type TemplateSpec

type TemplateSpec struct {
	Name        string
	Version     string
	DisplayName string
	Description string
	Category    string
	Autonomous  bool
	// ToolAccess constrains the run's tool surface while the mode is active.
	// Recognized values: "" (inherit), "full", "read-only".
	ToolAccess   string
	Instructions string
	ModelRouting *ModelRouting
	Constraints  *Constraints
}

TemplateSpec is the SDK-native mode template shape.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL