Interface: ProcessableOptions<_TInput, _TOutput>
Defined in: packages/core/src/deterministic.ts:517
Options for creating a processable with full type safety
Type Parameters
_TInput
_TInput
_TOutput
_TOutput
Properties
emitsInvocationEvents?
optionalemitsInvocationEvents?:boolean
Defined in: packages/core/src/deterministic.ts:520
Set true when a custom subscription implementation also emits every event through this invocation's options.onToken.
getBotNames?
optionalgetBotNames?: () =>string[]
Defined in: packages/core/src/deterministic.ts:528
Get all nested bot names (defaults to [name])
Returns
string[]
getChildren?
optionalgetChildren?: () =>ProcessableChild[]
Defined in: packages/core/src/deterministic.ts:548
Declare the processables this one composes (defaults to none).
A hand-built composite — the gate in the example below is one — already
has to declare getBotNames and subscribeToAll so its children's events
reach subscribers. This is the same declaration for structure: without it
a composite built here is indistinguishable from a leaf, which is the
guessing the contract exists to remove.
Returns
id?
optionalid?:string
Defined in: packages/core/src/deterministic.ts:525
Unique ID (auto-generated if not provided)
name?
optionalname?:string
Defined in: packages/core/src/deterministic.ts:522
Semantic name for this processable
subscribeToAll?
optionalsubscribeToAll?: (options?) =>Subscription
Defined in: packages/core/src/deterministic.ts:531
Custom subscription handler (for composites that need to delegate)
Parameters
options?
omit?
string[]
onComplete?
(botId, botName, output) => void
onError?
(botId, botName, event) => void
onProgressUpdate?
(botId, botName, event) => void
onStreamEvent?
(botId, botName, event) => void