/** * AI SDK Runtime Patch - Azure OpenAI Focus * * This module patches the AI SDK's prepareChatTools function to fix the schema corruption bug * where "type": "object" gets corrupted to "type": "None" before reaching Azure OpenAI. * * Bug Location: @ai-sdk/openai/dist/internal/index.js - prepareChatTools function line 471 * Issue: parameters: tool.inputSchema directly passes corrupted schemas * Azure Usage: Azure imports from '@ai-sdk/openai/internal' and uses prepareChatTools * * This patch intercepts and fixes the schemas before they reach Azure. */ /** * Apply the runtime patch to the AI SDK */ export declare function patchAISDK(): void; /** * Alternative patching approach - patch at the module level */ export declare function patchAISDKModuleLvel(): void; /** * Initialize AI SDK patching - try multiple approaches for Azure OpenAI */ export declare function initializeAISDKPatch(): void;