Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2026 Changes in this version + const StateError + const StateExecuting + const StateIdle + const StateRunning + const StateStarting + const StateStopped + const StateStopping + type Agent interface + Execute func(ctx context.Context, msgs []*bridge.Message) (*Result, error) + IsRunning func() bool + Name func() string + SessionID func() string + SetMCPServerAddr func(addr string) + Start func(ctx context.Context) error + Stop func(ctx context.Context) error + type Config struct + AutoApprove bool + BridgePath string + MCPConfigPath string + MCPServerAddr string + MCPServers []string + MaxTokens int + Model string + Prompt string + SessionID string + Timeout int + Tools []string + Verbose bool + WorkDir string + func DefaultConfig() *Config + type Result struct + Done bool + Error error + Fail bool + Messages []*bridge.Message + Metadata map[string]any + Output string + Pass bool + SessionID string + func NewResult() *Result + func (r *Result) HasSignal() bool + type Status struct + Error string + Name string + Running bool + SessionID string + State string