Documentation
¶
Index ¶
- Constants
- Variables
- func NormalizeModelForAgent(agent, model string) string
- func SelectedModelForExecution(opts AgentExecutionOptions) string
- type AgentExecutionOptions
- type DemoOptions
- type DemoResult
- type RunOptions
- type RunResult
- type SyntheticDemoDefinition
- type SyntheticDemoRun
- type SyntheticDemoRunOptions
Constants ¶
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 ¶
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
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.
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.