baked

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package baked embeds the agent document the run executes. The roster is a single agent, coder: the pipeline reads its prompt body, its frontmatter metadata (model, steps, tier) and its permission rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBakedAgent

func GetBakedAgent(name string) (string, bool)

GetBakedAgent returns only the model-visible Markdown body for an agent.

func GetBakedAgentMarkdown

func GetBakedAgentMarkdown(name string) (string, bool)

GetBakedAgentMarkdown returns the source document for frontmatter consumers.

func GetBakedAgentMetadata

func GetBakedAgentMetadata(name string) (map[string]any, bool)

GetBakedAgentMetadata returns the parsed YAML fields used to configure an agent without exposing them to the model.

func ListBakedAgents

func ListBakedAgents() []string

ListBakedAgents returns the baked agent names in registry order.

func PromptContent

func PromptContent(markdown string) string

PromptContent strips YAML frontmatter and trims the model-visible body.

Types

type Tier

type Tier string

Tier is a model routing pool. The router keeps one pool per tier and resolves any tier whose pool is empty to the high pool, so a run given nothing but `--high` routes every tier on that one pool.

const (
	TierHigh     Tier = "high"
	TierLow      Tier = "low"
	TierFrontier Tier = "frontier"
)

func TierFor

func TierFor(name string) Tier

TierFor returns the named agent's routing tier. A baked agent may override the table with a `tier:` frontmatter key; an absent or unrecognised value, and any name the table does not list, routes on the high pool.

Jump to

Keyboard shortcuts

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