Skip to main content

Interface: EmbedOptions

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

Properties​

abortSignal?​

optional abortSignal?: AbortSignal

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

Abort signal to cancel the AI SDK call (pass-through)


dimensions?​

optional dimensions?: number

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

Override the default embedding dimensions (DEFAULT_EMBEDDING_DIMENSIONS in embeddings.ts)


providerOptions?​

optional providerOptions?: Record<string, Record<string, unknown>>

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

Provider-specific options passed directly to the AI SDK's embed() call


taskType?​

optional taskType?: "RETRIEVAL_QUERY" | "RETRIEVAL_DOCUMENT" | "SEMANTIC_SIMILARITY"

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


timeoutMs?​

optional timeoutMs?: number

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

Override the helper-level per-call timeout.