Interface: PatchVercelAiSdkOptions
Defined in: src/hooks/ai-sdk.ts:199
Properties
agentId?
optionalagentId?:string
Defined in: src/hooks/ai-sdk.ts:203
approvalTimeoutMs?
optionalapprovalTimeoutMs?:number
Defined in: src/hooks/ai-sdk.ts:201
failClosed?
optionalfailClosed?:boolean
Defined in: src/hooks/ai-sdk.ts:215
When ai is installed but its tool factory hook point is absent — the
export is not a function because the upstream API MOVED (AAASM-4805) — throw a
ConfigurationError instead of only warning. Set from the caller's fail-closed
(enforce) posture. Scoped to the moved-hook case ONLY: it does NOT gate the
frozen-namespace throw (see throwOnFrozenInert), because a moved hook is a
rare broken/pinned-version state, whereas a frozen namespace is the shape of
EVERY real ai install — hard-failing init on mere presence of ai would
regress zero-config (AAASM-1847) and the auto-detected warn-not-throw invariant
(AAASM-4769).
fallbackRunId?
optionalfallbackRunId?:string
Defined in: src/hooks/ai-sdk.ts:202
gatewayClient
gatewayClient:
GatewayClient
Defined in: src/hooks/ai-sdk.ts:200
loadModule?
optionalloadModule?: () =>Promise<VercelAiSdkModule|undefined>
Defined in: src/hooks/ai-sdk.ts:226
Returns
Promise<VercelAiSdkModule | undefined>
throwOnFrozenInert?
optionalthrowOnFrozenInert?:boolean
Defined in: src/hooks/ai-sdk.ts:225
When the governed factory cannot be written back onto a frozen ai ES module
namespace (governance is inert — AAASM-4842), throw a ConfigurationError
instead of only warning. Deliberately SEPARATE from failClosed: the
auto-detected init path (patchDetectedVercelAiSdk) leaves this off so a bare
ai install stays zero-config and only WARNS (mirroring how AAASM-4769 handles
the analogous inert auto-detected framework), while a direct/explicit caller
that opts into hard enforcement can set it to fail loudly.