agentrunner

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AgentClaude is the supported public agent identifier for the Claude CLI.
	AgentClaude = "claude"
	// DefaultClaudeModel is the default Claude model alias for demo runs.
	DefaultClaudeModel = "sonnet"
	// DefaultAgentTimeout is the default maximum runtime for a demo agent invocation.
	DefaultAgentTimeout = 5 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoOptions

type DemoOptions struct {
	Agent             string
	RootPath          string
	CentianBinaryPath string
	Timeout           time.Duration
	ClaudeModel       string
	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 DemoRunner

type DemoRunner struct{}

DemoRunner provisions and launches a self-contained Centian demo workspace.

func (DemoRunner) RunDemo

func (DemoRunner) RunDemo(ctx context.Context, opts *DemoOptions) (*DemoResult, error)

RunDemo creates the demo workspace, starts Centian, launches the selected agent, and leaves Centian running after the agent exits.

Jump to

Keyboard shortcuts

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