Documentation
¶
Index ¶
- type RunContext
- type RunMode
- type RunOption
- func WithConversationManager(manager conversation.Manager) RunOption
- func WithRouter(router *events.EventRouter) RunOption
- func WithRunMode(mode RunMode) RunOption
- func WithStepSettings(settings *settings.StepSettings) RunOption
- func WithUISettings(settings *UISettings) RunOption
- func WithWriter(w io.Writer) RunOption
- type UISettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunContext ¶
type RunContext struct { // Core components (ConversationManager is required) ConversationManager conversation.Manager StepSettings *settings.StepSettings StepFactory *ai.StandardStepFactory Router *events.EventRouter // Optional UI/Terminal specific components UISettings *UISettings Writer io.Writer // Run configuration RunMode RunMode }
RunContext encapsulates all the settings and state needed for a single command run
func NewRunContext ¶
func NewRunContext(manager conversation.Manager) *RunContext
NewRunContext creates a new RunContext with default values and a required manager
type RunOption ¶
type RunOption func(*RunContext) error
func WithConversationManager ¶
func WithConversationManager(manager conversation.Manager) RunOption
func WithRouter ¶
func WithRouter(router *events.EventRouter) RunOption
func WithRunMode ¶
func WithStepSettings ¶
func WithStepSettings(settings *settings.StepSettings) RunOption
func WithUISettings ¶
func WithUISettings(settings *UISettings) RunOption
func WithWriter ¶
Click to show internal directories.
Click to hide internal directories.