Interface: StreamOptions
Defined in: packages/workflow-engine/src/ai/types.ts:449
Properties
abortSignal?
optionalabortSignal?:AbortSignal
Defined in: packages/workflow-engine/src/ai/types.ts:455
Abort signal to cancel the AI SDK call (pass-through)
maxRetries?
optionalmaxRetries?:number
Defined in: packages/workflow-engine/src/ai/types.ts:453
Maximum number of retries for the AI SDK call (pass-through)
maxTokens?
optionalmaxTokens?:number
Defined in: packages/workflow-engine/src/ai/types.ts:451
onChunk?
optionalonChunk?: (chunk) =>void
Defined in: packages/workflow-engine/src/ai/types.ts:458
Parameters
chunk
string
Returns
void
onStepEnd?
optionalonStepEnd?:GenerateTextOnStepEndCallback<NoInfer<ToolSet>,NoInfer<Context>>
Defined in: packages/workflow-engine/src/ai/types.ts:464
Callback fired when each step completes (for collecting tool results)
providerOptions?
optionalproviderOptions?:Record<string,Record<string,unknown>>
Defined in: packages/workflow-engine/src/ai/types.ts:471
Provider-specific options passed directly to the AI SDK call. Use this to
control reasoning per call, e.g.
{ openrouter: { reasoning: { enabled: false } } } or
{ anthropic: { thinking: { type: "disabled" } } }.
stopWhen?
optionalstopWhen?:Arrayable<StopCondition<NoInfer<ToolSet>,Context>>
Defined in: packages/workflow-engine/src/ai/types.ts:462
Condition to stop tool execution (e.g., stepCountIs(3))
temperature?
optionaltemperature?:number
Defined in: packages/workflow-engine/src/ai/types.ts:450
timeoutMs?
optionaltimeoutMs?:number
Defined in: packages/workflow-engine/src/ai/types.ts:457
Override the helper-level per-call timeout.
tools?
optionaltools?:ToolSet
Defined in: packages/workflow-engine/src/ai/types.ts:460
Tool definitions for the model to use