Skip to main content

Function: toAISDKOutput()

toAISDKOutput<T>(config): Promise<unknown>

Defined in: packages/core/src/utils/output.ts:182

Convert an OutputConfig to an AI SDK Output interface.

Call this where async is allowed (e.g. inside process/callLLMWithAISDK) rather than at config time, because the AI SDK import is async.

Type Parameters

T

T

Parameters

config

OutputConfig<T>

Returns

Promise<unknown>