actionrouter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package actionrouter handles routing of user actions to their respective handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	// contains filtered or unexported fields
}

Router handles delivery of structured tool actions (like QuestionAnswerAction) from the UI bus to the blocked tool executor.

func New

func New() *Router

New creates a new action router.

func (*Router) Close

func (r *Router) Close()

Close stops the background broker queue.

func (*Router) Deliver

func (r *Router) Deliver(act domain.Action)

Deliver routes an action to its waiting consumer based on CallIDer interface.

func (*Router) Wait

func (r *Router) Wait(ctx context.Context, callID string) (domain.Action, error)

Wait blocks until an action with the matching CallID is delivered, or the context is cancelled.

Jump to

Keyboard shortcuts

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