Interface: TextOptions<TTools>
Defined in: packages/workflow-engine/src/ai/types.ts:387
Type Parameters
TTools
TTools extends ToolSet = ToolSet
Properties
abortSignal?
optionalabortSignal?:AbortSignal
Defined in: packages/workflow-engine/src/ai/types.ts:393
Abort signal to cancel the AI SDK call (pass-through)
maxRetries?
optionalmaxRetries?:number
Defined in: packages/workflow-engine/src/ai/types.ts:391
Maximum number of retries for the AI SDK call (pass-through)
maxTokens?
optionalmaxTokens?:number
Defined in: packages/workflow-engine/src/ai/types.ts:389
onStepEnd?
optionalonStepEnd?:GenerateTextOnStepEndCallback<NoInfer<ToolSet>,NoInfer<Context>>
Defined in: packages/workflow-engine/src/ai/types.ts:403
Callback fired when each step completes (for collecting tool results)
output?
optionaloutput?:Output<any,any,any>
Defined in: packages/workflow-engine/src/ai/types.ts:405
Structured output - use with tools for combined tool calling + structured output
providerOptions?
optionalproviderOptions?:Record<string,Record<string,unknown>>
Defined in: packages/workflow-engine/src/ai/types.ts:412
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:401
Condition to stop tool execution (e.g., stepCountIs(3))
temperature?
optionaltemperature?:number
Defined in: packages/workflow-engine/src/ai/types.ts:388
timeoutMs?
optionaltimeoutMs?:number
Defined in: packages/workflow-engine/src/ai/types.ts:395
Override the helper-level per-call timeout.
toolChoice?
optionaltoolChoice?:ToolChoice<NoInfer<ToolSet>>
Defined in: packages/workflow-engine/src/ai/types.ts:399
Tool choice: 'auto' (default), 'required' (force tool use), 'none', or specific tool name
tools?
optionaltools?:TTools
Defined in: packages/workflow-engine/src/ai/types.ts:397
Tool definitions for the model to use