orchestrator

package
v0.139.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FormatDocs = `` /* 248-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Store  *store.Store
	Memory *memory.MemoryStore
	Config *config.Config
	Agents map[string]agent.Agent
	Thread ThreadRenderer
}

Builder assembles prompts for task execution.

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, taskID string) (*PromptResult, error)

Build assembles the full prompt for a task.

type PromptResult

type PromptResult struct {
	Prompt       string
	Agent        string
	Isolation    string
	Mounts       []string
	Timeout      time.Duration
	MemoryLoaded []string
	BudgetUsed   int
	BudgetTotal  int
}

PromptResult holds the assembled prompt and metadata about what was included.

type ResolvedConfig

type ResolvedConfig struct {
	Agent     string
	Isolation string
	Timeout   time.Duration
}

ResolvedConfig holds the final config for a task after precedence resolution.

func ResolveConfig

func ResolveConfig(sk *skill.Skill, taskAgent, agentIsolation string, cfg *config.Config) ResolvedConfig

ResolveConfig applies precedence: CLI flag (taskAgent) > skill frontmatter > agent defaults > config.yaml defaults. Pass sk=nil for ad-hoc (non-skill) tasks. Pass taskAgent="" when no CLI override.

type ThreadRenderer

type ThreadRenderer interface {
	Render(ctx context.Context, s *store.Store, date time.Time, budget int) string
}

ThreadRenderer renders the daily thread within a character budget. Implemented by the thread package.

Jump to

Keyboard shortcuts

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