agentrunner

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AgentClaude is the supported public agent identifier for the Claude CLI.
	AgentClaude = common.AgentClaude
	// AgentGemini is the supported public agent identifier for the Gemini CLI.
	AgentGemini = common.AgentGemini
	// AgentCodex is the supported public agent identifier for the Codex CLI.
	AgentCodex = common.AgentCodex
	// AgentCodexOllama is the supported public agent identifier for Codex OSS mode via Ollama.
	AgentCodexOllama = common.AgentCodexOllama
	// DefaultClaudeModel is the default Claude model alias for demo runs.
	DefaultClaudeModel = common.ModelClaudeSonnet
	// DefaultGeminiModel is the default Gemini model alias for demo runs.
	DefaultGeminiModel = common.ModelGemini25Flash
	// DefaultCodexModel is the default Codex model alias for demo runs (empty uses Codex default).
	DefaultCodexModel = ""
	// TaskTemplateFile is the default task template file name for the task.
	TaskTemplateFile = "guided_tdd_workflow.yaml"
)

Variables

View Source
var ErrSyntheticDemoNotFound = errors.New("synthetic demo not found")

ErrSyntheticDemoNotFound indicates that a requested bundled demo is unknown.

Functions

func NormalizeModelForAgent added in v0.4.0

func NormalizeModelForAgent(agent, model string) string

NormalizeModelForAgent applies known CLI/internal aliases for one agent model.

func SelectedModelForExecution added in v0.4.0

func SelectedModelForExecution(opts AgentExecutionOptions) string

SelectedModelForExecution returns the persisted model/profile label for one normalized execution.

Types

type AgentExecutionOptions added in v0.4.0

type AgentExecutionOptions struct {
	Agent           string
	Model           string
	Profile         string
	CodexConfigPath string
}

AgentExecutionOptions configures one concrete agent invocation.

func NormalizeExecutionOptions added in v0.4.0

func NormalizeExecutionOptions(opts AgentExecutionOptions) (AgentExecutionOptions, error)

NormalizeExecutionOptions trims one execution config, applies per-agent defaults, and validates model/profile compatibility.

type DemoOptions

type DemoOptions struct {
	Execution         AgentExecutionOptions
	RootPath          string
	CentianBinaryPath string
	ScenarioFilePath  string
	Timeout           time.Duration
	OpenBrowser       bool
	Stdout            io.Writer
	Stderr            io.Writer
}

DemoOptions configures a single demo run.

type DemoResult

type DemoResult struct {
	RootPath      string
	WorkspacePath string
	ConfigPath    string
	PromptPath    string
	AgentStdout   string
	AgentStderr   string
	UIPublicURL   string
	MCPURL        string
	PID           int
	StopHint      string
}

DemoResult describes the generated demo workspace and running Centian instance.

type RunOptions added in v0.4.0

type RunOptions struct {
	Execution     AgentExecutionOptions
	ArtifactRoot  string
	WorkspacePath string
	MCPURL        string
	Prompt        string
	Timeout       time.Duration
	Stdout        io.Writer
	Stderr        io.Writer
}

RunOptions configures one headless agent invocation against a Centian MCP URL.

type RunResult added in v0.4.0

type RunResult struct {
	Agent         string
	ArtifactRoot  string
	WorkspacePath string
	StdoutPath    string
	StderrPath    string
	SelectedModel string
}

RunResult describes one completed agent invocation.

func Run added in v0.4.0

func Run(ctx context.Context, opts *RunOptions) (*RunResult, error)

Run launches one supported agent against the provided MCP URL.

type SyntheticDemoDefinition added in v0.4.3

type SyntheticDemoDefinition struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	DurationMS  int    `json:"durationMs"`
}

SyntheticDemoDefinition describes one bundled synthetic demo.

type SyntheticDemoRun added in v0.4.3

type SyntheticDemoRun struct {
	RunID      string `json:"runId"`
	DemoID     string `json:"demoId"`
	DurationMS int    `json:"durationMs"`
}

SyntheticDemoRun describes a started synthetic demo replay.

func StartSyntheticDemoRunWithOptions added in v0.4.3

func StartSyntheticDemoRunWithOptions(ctx context.Context, store *persistence.Store, demoID string, options SyntheticDemoRunOptions) (*SyntheticDemoRun, error)

StartSyntheticDemoRunWithOptions seeds one bundled synthetic demo against the provided store using explicit replay options.

type SyntheticDemoRunOptions added in v0.4.3

type SyntheticDemoRunOptions struct {
	RunID string
}

SyntheticDemoRunOptions customizes a seeded synthetic demo run.

Jump to

Keyboard shortcuts

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