Skip to main content

Interface: AIBatchRequest

Defined in: packages/workflow-engine/src/ai/types.ts:530

A request to be processed in a batch

Properties​

id​

id: string

Defined in: packages/workflow-engine/src/ai/types.ts:532

Unique identifier for this request (used to match results)


maxTokens?​

optional maxTokens?: number

Defined in: packages/workflow-engine/src/ai/types.ts:538

P6c: previously impossible to set; two of three old providers silently capped output at 1024.


prompt​

prompt: string

Defined in: packages/workflow-engine/src/ai/types.ts:534

The prompt to send to the model


schema?​

optional schema?: ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

Defined in: packages/workflow-engine/src/ai/types.ts:536

Optional Zod schema for structured JSON output


system?​

optional system?: string

Defined in: packages/workflow-engine/src/ai/types.ts:539


temperature?​

optional temperature?: number

Defined in: packages/workflow-engine/src/ai/types.ts:540