Documentation
¶
Index ¶
- func Run(ctx context.Context, ag *agent.Agent, model, version string, sk []skills.Skill, ...) error
- type ModelChoice
- type Option
- func WithAfterSend(fn func() error) Option
- func WithModelChoices(choices []ModelChoice) Option
- func WithModelSwitcher(provider string, choices []ModelChoice, fn func(ModelChoice) error) Option
- func WithPermissionMode(mode string) Option
- func WithSessions(store *session.Store, current *session.Session, ...) Option
- func WithStepEvents(ch <-chan factory.Event) Option
- func WithVerbose(verbose bool) Option
- func WithWorkflowEvents(ch <-chan workflow.Event) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ModelChoice ¶ added in v0.2.0
type Option ¶ added in v0.2.0
type Option func(*Options)
func WithAfterSend ¶ added in v0.2.0
func WithModelChoices ¶ added in v0.2.0
func WithModelChoices(choices []ModelChoice) Option
func WithModelSwitcher ¶ added in v0.3.0
func WithModelSwitcher(provider string, choices []ModelChoice, fn func(ModelChoice) error) Option
WithModelSwitcher enables provider-aware model selection. The callback must finish the backend switch before returning; the TUI updates its labels only after it succeeds.
func WithPermissionMode ¶ added in v0.2.0
func WithSessions ¶ added in v0.2.0
func WithStepEvents ¶ added in v0.2.0
WithStepEvents subscribes the TUI to the factory supervisor's event stream, which the chat view folds into live subagent trees while agent calls execute.
func WithVerbose ¶ added in v0.3.0
WithVerbose controls tool activity rendering: false (the default) shows live activity and concise completed receipts while hiding successful tool result bodies; true restores full tool call/result cards. Errors always render in full regardless of this setting.
func WithWorkflowEvents ¶ added in v0.2.0
type Options ¶ added in v0.2.0
type Options struct {
AfterSend func() error
PermissionMode string
SessionStore *session.Store
CurrentSession *session.Session
OnSessionResume func(*session.Session) error
ModelChoices []ModelChoice
Provider string
ModelSwitcher func(ModelChoice) error
StepEvents <-chan factory.Event
WorkflowEvents <-chan workflow.Event
Verbose bool
}
Click to show internal directories.
Click to hide internal directories.