Skip to content

Type Alias: DefineAgentOptions\<T>

type DefineAgentOptions<T> = DefineAgentWithHandlers<T> | DefineAgentWithOnMessage<T>;

Defined in: rine-ts-sdk/src/agent.ts:126

Options bag for defineAgent(). The discriminated union enforces that callers supply exactly one of handlers (type-routed dispatch dict, optionally with a "*" catch-all) OR onMessage (single handler for every non-reserved message) — passing both is a TypeScript error.

Type Parameters

Type Parameter Default type
T unknown