Versions in this module Expand all Collapse all v0 v0.2.4 Oct 25, 2026 Changes in this version + type Deps struct + Caller ModelCaller + Emitter Emitter + Ender Ender + Executor Executor + Handlers map[string]pause.Handler + History History + Logger *slog.Logger + Model model.ToolCallingChatModel + Replies ReplyWaiter + Tools []*schema.ToolInfo + type Dispatcher struct + func New(d Deps) *Dispatcher + func (x *Dispatcher) Dispatch(ctx context.Context, tc schema.ToolCall) bool + type Emitter interface + Emit func(data event.Data) + type Ender interface + EndAwaitingHuman func(awaiting event.AwaitingInputData) + EndStopped func() + type Executor interface + ExecuteTool func(ctx context.Context, name, arguments string) (string, error) + type History interface + Append func(msg *schema.Message) + Messages func() []*schema.Message + type ModelCaller interface + Call func(ctx context.Context, m model.ToolCallingChatModel, msgs []*schema.Message, ...) (*schema.Message, error) + type ReplyWaiter interface + WaitInject func(ctx context.Context) (string, bool)