Versions in this module Expand all Collapse all v0 v0.2.0 Feb 16, 2026 v0.1.0 Feb 15, 2026 Changes in this version + type Client interface + CreateSession func(ctx context.Context, meta schema.SessionMeta) (*schema.Session, error) + DeleteSession func(ctx context.Context, id string) error + GetSession func(ctx context.Context, id string) (*schema.Session, error) + ListModels func(ctx context.Context, opts ...opt.Opt) (*schema.ListModelsResponse, error) + ListSessions func(ctx context.Context, opts ...opt.Opt) (*schema.ListSessionResponse, error) + ListTools func(ctx context.Context, opts ...opt.Opt) (*schema.ListToolResponse, error) + UpdateSession func(ctx context.Context, id string, meta schema.SessionMeta) (*schema.Session, error) + type Handler struct + func New(client Client, hooks Hooks) *Handler + func (h *Handler) Handle(ctx context.Context, evt ui.Event, sessionID *string) error + type Hooks interface + OnSessionChanged func(sessionID string) + OnSessionReset func() + ResetMeta func() *schema.SessionMeta