@ai-sdk/google 3.0.87 → 3.0.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -418,7 +418,7 @@ function convertToGoogleGenerativeAIMessages(prompt, options) {
418
418
  return {
419
419
  toolCall: {
420
420
  toolType: serverToolType,
421
- args: typeof part.input === "string" ? JSON.parse(part.input) : part.input,
421
+ args: typeof part.input === "string" ? (0, import_provider_utils.secureJsonParse)(part.input) : part.input,
422
422
  id: serverToolCallId
423
423
  },
424
424
  thoughtSignature: effectiveThoughtSignature