Skip to main content

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?

optional emitsInvocationEvents?: 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?

optional getBotNames?: () => string[]

Defined in: packages/core/src/deterministic.ts:528

Get all nested bot names (defaults to [name])

Returns

string[]


getChildren?

optional getChildren?: () => 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

ProcessableChild[]


id?

optional id?: string

Defined in: packages/core/src/deterministic.ts:525

Unique ID (auto-generated if not provided)


name?

optional name?: string

Defined in: packages/core/src/deterministic.ts:522

Semantic name for this processable


subscribeToAll?

optional subscribeToAll?: (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

Returns

Subscription