Documentation
¶
Overview ¶
Package eventengine subscribes to interaction events and dispatches agent runs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandlerFunc ¶
type EventHandlerFunc func(ctx context.Context, event *interactionevent.Event) error
EventHandlerFunc handles one normalized interaction event.
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
Orchestrator subscribes to interaction event topics and dispatches them to the agent runtime.
func NewOrchestrator ¶
func NewOrchestrator(subscriber eventbus.Subscriber, runner agent.Runner) *Orchestrator
NewOrchestrator creates a new event orchestrator.
func (*Orchestrator) GetHandler ¶
func (o *Orchestrator) GetHandler(topic string) (EventHandlerFunc, error)
GetHandler returns the handler registered for a topic.
func (*Orchestrator) RegisterHandler ¶
func (o *Orchestrator) RegisterHandler(topic string, handler EventHandlerFunc)
RegisterHandler registers an event handler for a topic.
Click to show internal directories.
Click to hide internal directories.