@wix/auto_sdk_ai-gateway_prompts 1.0.1 → 1.0.2

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +42 -4
  2. package/build/cjs/index.js +15 -5
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +15 -5
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +42 -4
  8. package/build/cjs/meta.js +15 -5
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +42 -4
  11. package/build/es/index.mjs +14 -5
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +14 -5
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +42 -4
  17. package/build/es/meta.mjs +14 -5
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +3 -3
  20. package/build/internal/cjs/index.js +15 -5
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +44 -6
  23. package/build/internal/cjs/index.typings.js +15 -5
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +42 -4
  26. package/build/internal/cjs/meta.js +15 -5
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +3 -3
  29. package/build/internal/es/index.mjs +14 -5
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +44 -6
  32. package/build/internal/es/index.typings.mjs +14 -5
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +42 -4
  35. package/build/internal/es/meta.mjs +14 -5
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1009,6 +1009,8 @@ interface GenerateContentRequest {
1009
1009
  safetySettings?: SafetySetting[];
1010
1010
  /** The generation configuration for the response. */
1011
1011
  generationConfig?: GenerationConfig;
1012
+ /** Tool configuration for any Tool specified in the request. */
1013
+ toolConfig?: ToolConfig;
1012
1014
  /** If present, describes the fine-tuning model that will be called instead of generic one. */
1013
1015
  fineTuningSpec?: FineTuningSpec;
1014
1016
  }
@@ -1193,17 +1195,17 @@ interface GoogleproxyV1Tool {
1193
1195
  /** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */
1194
1196
  googleSearch?: GoogleSearch;
1195
1197
  }
1196
- declare enum Mode {
1198
+ declare enum DynamicRetrievalConfigMode {
1197
1199
  /** Always trigger retrieval. */
1198
1200
  MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
1199
1201
  /** Run retrieval only when system decides it is necessary. */
1200
1202
  MODE_DYNAMIC = "MODE_DYNAMIC"
1201
1203
  }
1202
1204
  /** @enumType */
1203
- type ModeWithLiterals = Mode | 'MODE_UNSPECIFIED' | 'MODE_DYNAMIC';
1205
+ type DynamicRetrievalConfigModeWithLiterals = DynamicRetrievalConfigMode | 'MODE_UNSPECIFIED' | 'MODE_DYNAMIC';
1204
1206
  interface DynamicRetrievalConfig {
1205
1207
  /** The mode of the predictor to be used in dynamic retrieval. */
1206
- mode?: ModeWithLiterals;
1208
+ mode?: DynamicRetrievalConfigModeWithLiterals;
1207
1209
  /** The threshold to be used in dynamic retrieval. If not set, a system default value is used. */
1208
1210
  dynamicThreshold?: string | null;
1209
1211
  }
@@ -1375,6 +1377,40 @@ declare enum Modality {
1375
1377
  }
1376
1378
  /** @enumType */
1377
1379
  type ModalityWithLiterals = Modality | 'UNKNOWN_MODALITY' | 'TEXT' | 'IMAGE' | 'AUDIO';
1380
+ interface ToolConfig {
1381
+ /** Function calling config. */
1382
+ functionCallingConfig?: FunctionCallingConfig;
1383
+ }
1384
+ interface FunctionCallingConfig {
1385
+ /** Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO. */
1386
+ mode?: ModeWithLiterals;
1387
+ /**
1388
+ * A set of function names that, when provided, limits the functions the model will call.
1389
+ * This should only be set when the Mode is ANY or VALIDATED. Function names should match [FunctionDeclaration.name]. When set, model will predict a function call from only allowed function names.
1390
+ * @maxLength 64
1391
+ * @maxSize 100
1392
+ */
1393
+ allowedFunctionNames?: string[];
1394
+ }
1395
+ declare enum Mode {
1396
+ UNKNOWN = "UNKNOWN",
1397
+ /** Default model behavior, model decides to predict either a function call or a natural language response. */
1398
+ AUTO = "AUTO",
1399
+ /**
1400
+ * Model is constrained to always predicting a function call only. If "allowedFunctionNames" are set, the predicted function call will be limited to any one of "allowedFunctionNames",
1401
+ * else the predicted function call will be any one of the provided "functionDeclarations".
1402
+ */
1403
+ ANY = "ANY",
1404
+ /** Model will not predict any function call. Model behavior is same as when not passing any function declarations. */
1405
+ NONE = "NONE",
1406
+ /**
1407
+ * Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. If "allowedFunctionNames" are set, the predicted function call will be
1408
+ * limited to any one of "allowedFunctionNames", else the predicted function call will be any one of the provided "functionDeclarations".
1409
+ */
1410
+ VALIDATED = "VALIDATED"
1411
+ }
1412
+ /** @enumType */
1413
+ type ModeWithLiterals = Mode | 'UNKNOWN' | 'AUTO' | 'ANY' | 'NONE' | 'VALIDATED';
1378
1414
  interface FineTuningSpec {
1379
1415
  /**
1380
1416
  * Endpoint ID of the fine-tuning model to use.
@@ -2575,6 +2611,8 @@ interface V1ToolUse {
2575
2611
  name?: string | null;
2576
2612
  /** Tool use input */
2577
2613
  input?: Record<string, any> | null;
2614
+ /** Optional: enable tool use caching */
2615
+ cacheControl?: V1CacheControl;
2578
2616
  }
2579
2617
  interface V1ToolResult {
2580
2618
  /**
@@ -8973,7 +9011,7 @@ interface AnthropicStreamChunkMessageDelta {
8973
9011
  * @permissionId API_INFRA.WIX_AI_EXTERNAL_GATEWAY_GENERATE_CONTENT
8974
9012
  * @fqn wix.api_infra.v1.WixAiExternalGateway.GenerateContentByPromptObject
8975
9013
  */
8976
- declare function generateContentByPromptObject(options?: GenerateContentByPromptObjectOptions): Promise<NonNullablePaths<GenerateContentByPromptObjectResponse, `response.openAiChatCompletionResponse.model` | `response.openAiChatCompletionResponse.choices` | `response.openAiChatCompletionResponse.choices.${number}.message.role` | `response.googleTextBisonResponse.predictions` | `response.googleChatBisonResponse.predictions` | `response.azureChatCompletionResponse.model` | `response.azureChatCompletionResponse.choices` | `response.azureChatCompletionResponse.choices.${number}.message.role` | `response.googleGeminiGenerateContentResponse.candidates` | `response.googleGeminiGenerateContentResponse.candidates.${number}.finishReason` | `response.googleGeminiGenerateContentResponse.usageMetadata.promptTokensDetails` | `response.googleGeminiGenerateContentResponse.usageMetadata.promptTokensDetails.${number}.modality` | `response.googleGeminiGenerateContentResponse.usageMetadata.candidatesTokensDetails` | `response.anthropicClaudeResponse.responseId` | `response.anthropicClaudeResponse.model` | `response.anthropicClaudeResponse.responseType` | `response.anthropicClaudeResponse.role` | `response.anthropicClaudeResponse.content` | `response.anthropicClaudeResponse.usage.inputTokens` | `response.anthropicClaudeResponse.usage.outputTokens` | `response.anthropicClaudeResponse.contentBlocks` | `response.anthropicClaudeResponse.contentBlocks.${number}.text` | `response.anthropicClaudeResponse.contentBlocks.${number}.textContent.text` | `response.anthropicClaudeResponse.contentBlocks.${number}.textContent.cacheControl.type` | `response.anthropicClaudeResponse.contentBlocks.${number}.imageUrl.mediaType` | `response.anthropicClaudeResponse.contentBlocks.${number}.thinking.signature` | `response.anthropicClaudeResponse.contentBlocks.${number}.thinking.thinking` | `response.anthropicClaudeResponse.contentBlocks.${number}.redactedThinking.data` | `response.googleAnthropicClaudeResponse.responseId` | `response.googleAnthropicClaudeResponse.model` | `response.googleAnthropicClaudeResponse.responseType` | `response.googleAnthropicClaudeResponse.role` | `response.googleAnthropicClaudeResponse.content` | `response.googleAnthropicClaudeResponse.usage.inputTokens` | `response.googleAnthropicClaudeResponse.usage.outputTokens` | `response.googleAnthropicClaudeResponse.contentBlocks` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.text` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.textContent.text` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.textContent.cacheControl.type` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.imageUrl.mediaType` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.thinking.signature` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.thinking.thinking` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.redactedThinking.data` | `response.invokeAnthropicModelResponse.responseId` | `response.invokeAnthropicModelResponse.model` | `response.invokeAnthropicModelResponse.type` | `response.invokeAnthropicModelResponse.role` | `response.invokeAnthropicModelResponse.usage.cacheCreation.ephemeral1hInputTokens` | `response.invokeAnthropicModelResponse.usage.cacheCreation.ephemeral5mInputTokens` | `response.invokeAnthropicModelResponse.usage.inputTokens` | `response.invokeAnthropicModelResponse.usage.outputTokens` | `response.invokeAnthropicModelResponse.usage.serverToolUse.webSearchRequests` | `response.invokeAnthropicModelResponse.usage.serverToolUse.webFetchRequests` | `response.invokeAnthropicModelResponse.container.expiresAt` | `response.invokeAnthropicModelResponse.container._id` | `response.invokeAnthropicModelResponse.content` | `response.invokeAnthropicModelResponse.content.${number}.textContent.text` | `response.invokeAnthropicModelResponse.content.${number}.textContent.cacheControl.type` | `response.invokeAnthropicModelResponse.content.${number}.image.mediaType` | `response.invokeAnthropicModelResponse.content.${number}.thinking.signature` | `response.invokeAnthropicModelResponse.content.${number}.thinking.thinking` | `response.invokeAnthropicModelResponse.content.${number}.redactedThinking.data` | `response.invokeAnthropicModelResponse.content.${number}.document.type` | `response.invokeAnthropicModelResponse.content.${number}.webFetchToolResult.contentSuccess.type` | `response.invokeAnthropicModelResponse.content.${number}.webFetchToolResult.contentError.type` | `response.invokeAnthropicModelResponse.content.${number}.webFetchToolResult.type` | `response.perplexityChatCompletionResponse.model` | `response.perplexityChatCompletionResponse.citations` | `response.perplexityChatCompletionResponse.choices` | `response.perplexityChatCompletionResponse.choices.${number}.message.content` | `response.perplexityChatCompletionResponse.choices.${number}.message.role` | `response.perplexityChatCompletionResponse.images` | `response.perplexityChatCompletionResponse.relatedQuestions` | `response.openAiCreateImageResponse.data` | `response.openAiCreateImageResponse.model` | `response.stabilityAiTextToImageResponse.data` | `response.stabilityAiTextToImageResponse.model` | `response.stabilityAiGenerateCoreResponse.data` | `response.stabilityAiGenerateCoreResponse.model` | `response.stabilityAiStableDiffusionResponse.data` | `response.stabilityAiStableDiffusionResponse.model` | `response.replicateCreatePredictionResponse.output` | `response.stabilityAiEditImageWithPromptResponse.data` | `response.stabilityAiEditImageWithPromptResponse.model` | `response.runwareTextToImageResponse.data` | `response.runwareTextToImageResponse.data.${number}.taskUuid` | `response.runwareTextToImageResponse.data.${number}.imageUuid` | `response.runwareTextToImageResponse.data.${number}.nsfwContent` | `response.googleGenerateImageResponse.predictions` | `response.googleGenerateVideoResponse.videos` | `response.mlPlatformGenerateImageResponse.output` | `response.openAiCreateOpenAiImageResponse.data` | `response.openAiCreateOpenAiImageResponse.model` | `response.openAiEditOpenAiImageResponse.data` | `response.openAiEditOpenAiImageResponse.model` | `response.googleCreateChatCompletionResponse.model` | `response.googleCreateChatCompletionResponse.choices` | `response.googleCreateChatCompletionResponse.choices.${number}.message.role` | `response.mlPlatformOpenAiRawResponse.modelId` | `response.mlPlatformOpenAiRawResponse.choices` | `response.mlPlatformOpenAiRawResponse.choices.${number}.message.role` | `response.runwareVideoInferenceResponse.data` | `response.runwareVideoInferenceResponse.data.${number}.taskType` | `response.runwareVideoInferenceResponse.data.${number}.taskUuid` | `response.openAiResponsesResponse.model` | `response.openAiResponsesResponse.output` | `response.azureOpenAiResponsesResponse.model` | `response.azureOpenAiResponsesResponse.output` | `response.generatedContent.texts` | `response.generatedContent.images` | `response.generatedContent.images.${number}.url` | `response.generatedContent.videos` | `response.generatedContent.thinkingTexts` | `materializedPrompt.openAiChatCompletionRequest.model` | `materializedPrompt.openAiChatCompletionRequest.messages` | `materializedPrompt.openAiChatCompletionRequest.messages.${number}.role` | `materializedPrompt.openAiChatCompletionRequest.functions` | `materializedPrompt.openAiChatCompletionRequest.stop` | `materializedPrompt.openAiChatCompletionRequest.tools` | `materializedPrompt.openAiChatCompletionRequest.tools.${number}.type` | `materializedPrompt.googleTextBisonRequest.instances` | `materializedPrompt.googleTextBisonRequest.parameters.stopSequences` | `materializedPrompt.googleTextBisonRequest.model` | `materializedPrompt.googleChatBisonRequest.instances` | `materializedPrompt.googleChatBisonRequest.model` | `materializedPrompt.azureChatCompletionRequest.model` | `materializedPrompt.azureChatCompletionRequest.messages` | `materializedPrompt.azureChatCompletionRequest.messages.${number}.role` | `materializedPrompt.azureChatCompletionRequest.functions` | `materializedPrompt.azureChatCompletionRequest.stop` | `materializedPrompt.azureChatCompletionRequest.tools` | `materializedPrompt.azureChatCompletionRequest.tools.${number}.type` | `materializedPrompt.googleGeminiGenerateContentRequest.model` | `materializedPrompt.googleGeminiGenerateContentRequest.contents` | `materializedPrompt.googleGeminiGenerateContentRequest.contents.${number}.role` | `materializedPrompt.googleGeminiGenerateContentRequest.systemInstruction.parts` | `materializedPrompt.googleGeminiGenerateContentRequest.tools` | `materializedPrompt.googleGeminiGenerateContentRequest.tools.${number}.googleSearchRetrieval.dynamicRetrievalConfig.mode` | `materializedPrompt.googleGeminiGenerateContentRequest.safetySettings` | `materializedPrompt.googleGeminiGenerateContentRequest.safetySettings.${number}.category` | `materializedPrompt.googleGeminiGenerateContentRequest.safetySettings.${number}.threshold` | `materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.stopSequences` | `materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.responseModalities` | `materializedPrompt.anthropicClaudeRequest.model` | `materializedPrompt.anthropicClaudeRequest.messages` | `materializedPrompt.anthropicClaudeRequest.messages.${number}.role` | `materializedPrompt.anthropicClaudeRequest.systemPrompt` | `materializedPrompt.anthropicClaudeRequest.stopSequences` | `materializedPrompt.anthropicClaudeRequest.tools` | `materializedPrompt.anthropicClaudeRequest.tools.${number}.cacheControl.type` | `materializedPrompt.anthropicClaudeRequest.toolChoice.type` | `materializedPrompt.anthropicClaudeRequest.thinking.budgetTokens` | `materializedPrompt.anthropicClaudeRequest.mcpServers` | `materializedPrompt.anthropicClaudeRequest.mcpServers.${number}.name` | `materializedPrompt.anthropicClaudeRequest.mcpServers.${number}.type` | `materializedPrompt.googleAnthropicClaudeRequest.model` | `materializedPrompt.googleAnthropicClaudeRequest.messages` | `materializedPrompt.googleAnthropicClaudeRequest.messages.${number}.role` | `materializedPrompt.googleAnthropicClaudeRequest.systemPrompt` | `materializedPrompt.googleAnthropicClaudeRequest.stopSequences` | `materializedPrompt.googleAnthropicClaudeRequest.tools` | `materializedPrompt.googleAnthropicClaudeRequest.tools.${number}.cacheControl.type` | `materializedPrompt.googleAnthropicClaudeRequest.toolChoice.type` | `materializedPrompt.googleAnthropicClaudeRequest.thinking.budgetTokens` | `materializedPrompt.googleAnthropicClaudeRequest.mcpServers` | `materializedPrompt.googleAnthropicClaudeRequest.mcpServers.${number}.name` | `materializedPrompt.googleAnthropicClaudeRequest.mcpServers.${number}.type` | `materializedPrompt.invokeAnthropicModelRequest.model` | `materializedPrompt.invokeAnthropicModelRequest.messages` | `materializedPrompt.invokeAnthropicModelRequest.messages.${number}.role` | `materializedPrompt.invokeAnthropicModelRequest.systemPrompt` | `materializedPrompt.invokeAnthropicModelRequest.stopSequences` | `materializedPrompt.invokeAnthropicModelRequest.tools` | `materializedPrompt.invokeAnthropicModelRequest.tools.${number}.custom.name` | `materializedPrompt.invokeAnthropicModelRequest.tools.${number}.custom.cacheControl.type` | `materializedPrompt.invokeAnthropicModelRequest.tools.${number}.computerUse.displayWidthPx` | `materializedPrompt.invokeAnthropicModelRequest.tools.${number}.computerUse.displayHeightPx` | `materializedPrompt.invokeAnthropicModelRequest.toolChoice.type` | `materializedPrompt.invokeAnthropicModelRequest.thinking.budgetTokens` | `materializedPrompt.invokeAnthropicModelRequest.mcpServers` | `materializedPrompt.invokeAnthropicModelRequest.mcpServers.${number}.name` | `materializedPrompt.invokeAnthropicModelRequest.mcpServers.${number}.type` | `materializedPrompt.llamaModelRequest.model` | `materializedPrompt.openAiCreateImageRequest.model` | `materializedPrompt.openAiCreateImageRequest.quality` | `materializedPrompt.openAiCreateImageRequest.size` | `materializedPrompt.openAiCreateImageRequest.style` | `materializedPrompt.stabilityAiTextToImageRequest.model` | `materializedPrompt.stabilityAiTextToImageRequest.textPrompts` | `materializedPrompt.stabilityAiTextToImageRequest.clipGuidancePreset` | `materializedPrompt.stabilityAiTextToImageRequest.sampler` | `materializedPrompt.stabilityAiTextToImageRequest.stylePreset` | `materializedPrompt.stabilityAiGenerateCoreRequest.model` | `materializedPrompt.stabilityAiGenerateCoreRequest.stylePreset` | `materializedPrompt.stabilityAiStableDiffusionRequest.mode` | `materializedPrompt.stabilityAiStableDiffusionRequest.model` | `materializedPrompt.stabilityAiStableDiffusionRequest.outputFormat` | `materializedPrompt.blackForestLabsGenerateImageRequest.model` | `materializedPrompt.replicateCreatePredictionRequest.model` | `materializedPrompt.stabilityAiEditWithPromptRequest.model` | `materializedPrompt.stabilityAiEditWithPromptRequest.stylePreset` | `materializedPrompt.runwareTextToImageRequest.positivePrompt` | `materializedPrompt.runwareTextToImageRequest.height` | `materializedPrompt.runwareTextToImageRequest.width` | `materializedPrompt.runwareTextToImageRequest.referenceImages` | `materializedPrompt.runwareTextToImageRequest.model` | `materializedPrompt.runwareTextToImageRequest.loraModels` | `materializedPrompt.mlPlatformLlamaModelRequest.modelId` | `materializedPrompt.perplexityChatCompletionRequest.model` | `materializedPrompt.perplexityChatCompletionRequest.messages` | `materializedPrompt.perplexityChatCompletionRequest.messages.${number}.content` | `materializedPrompt.perplexityChatCompletionRequest.messages.${number}.role` | `materializedPrompt.perplexityChatCompletionRequest.searchDomainFilter` | `materializedPrompt.perplexityChatCompletionRequest.responseFormat.jsonSchema` | `materializedPrompt.perplexityChatCompletionRequest.responseFormat.regex` | `materializedPrompt.googleGenerateImageRequest.model` | `materializedPrompt.googleGenerateImageRequest.instances` | `materializedPrompt.mlPlatformGenerateImageRequest.model` | `materializedPrompt.openAiCreateOpenAiImageRequest.model` | `materializedPrompt.openAiEditOpenAiImageRequest.model` | `materializedPrompt.openAiEditOpenAiImageRequest.imageUrls` | `materializedPrompt.googleGenerateVideoRequest.model` | `materializedPrompt.googleGenerateVideoRequest.instances` | `materializedPrompt.googleCreateChatCompletionRequest.model` | `materializedPrompt.googleCreateChatCompletionRequest.messages` | `materializedPrompt.googleCreateChatCompletionRequest.messages.${number}.role` | `materializedPrompt.mlPlatformOpenAiRawRequest.modelId` | `materializedPrompt.mlPlatformOpenAiRawRequest.messages` | `materializedPrompt.mlPlatformOpenAiRawRequest.messages.${number}.role` | `materializedPrompt.runwareVideoInferenceRequest.outputFormat` | `materializedPrompt.runwareVideoInferenceRequest.frameImages` | `materializedPrompt.runwareVideoInferenceRequest.frameImages.${number}.inputImage` | `materializedPrompt.runwareVideoInferenceRequest.referenceImages` | `materializedPrompt.runwareVideoInferenceRequest.model` | `materializedPrompt.openAiResponsesRequest.model` | `materializedPrompt.openAiResponsesRequest.include` | `materializedPrompt.openAiResponsesRequest.input` | `materializedPrompt.openAiResponsesRequest.input.${number}.message.role` | `materializedPrompt.openAiResponsesRequest.tools` | `materializedPrompt.azureOpenAiResponsesRequest.model` | `materializedPrompt.azureOpenAiResponsesRequest.include` | `materializedPrompt.azureOpenAiResponsesRequest.input` | `materializedPrompt.azureOpenAiResponsesRequest.input.${number}.message.role` | `materializedPrompt.azureOpenAiResponsesRequest.tools` | `materializedPrompt.templatedParameterNames` | `materializedPrompt.templatedDynamicPropertiesNames` | `predictionId`, 8>>;
9014
+ declare function generateContentByPromptObject(options?: GenerateContentByPromptObjectOptions): Promise<NonNullablePaths<GenerateContentByPromptObjectResponse, `response.openAiChatCompletionResponse.model` | `response.openAiChatCompletionResponse.choices` | `response.openAiChatCompletionResponse.choices.${number}.message.role` | `response.googleTextBisonResponse.predictions` | `response.googleChatBisonResponse.predictions` | `response.azureChatCompletionResponse.model` | `response.azureChatCompletionResponse.choices` | `response.azureChatCompletionResponse.choices.${number}.message.role` | `response.googleGeminiGenerateContentResponse.candidates` | `response.googleGeminiGenerateContentResponse.candidates.${number}.finishReason` | `response.googleGeminiGenerateContentResponse.usageMetadata.promptTokensDetails` | `response.googleGeminiGenerateContentResponse.usageMetadata.promptTokensDetails.${number}.modality` | `response.googleGeminiGenerateContentResponse.usageMetadata.candidatesTokensDetails` | `response.anthropicClaudeResponse.responseId` | `response.anthropicClaudeResponse.model` | `response.anthropicClaudeResponse.responseType` | `response.anthropicClaudeResponse.role` | `response.anthropicClaudeResponse.content` | `response.anthropicClaudeResponse.usage.inputTokens` | `response.anthropicClaudeResponse.usage.outputTokens` | `response.anthropicClaudeResponse.contentBlocks` | `response.anthropicClaudeResponse.contentBlocks.${number}.text` | `response.anthropicClaudeResponse.contentBlocks.${number}.textContent.text` | `response.anthropicClaudeResponse.contentBlocks.${number}.textContent.cacheControl.type` | `response.anthropicClaudeResponse.contentBlocks.${number}.imageUrl.mediaType` | `response.anthropicClaudeResponse.contentBlocks.${number}.thinking.signature` | `response.anthropicClaudeResponse.contentBlocks.${number}.thinking.thinking` | `response.anthropicClaudeResponse.contentBlocks.${number}.redactedThinking.data` | `response.googleAnthropicClaudeResponse.responseId` | `response.googleAnthropicClaudeResponse.model` | `response.googleAnthropicClaudeResponse.responseType` | `response.googleAnthropicClaudeResponse.role` | `response.googleAnthropicClaudeResponse.content` | `response.googleAnthropicClaudeResponse.usage.inputTokens` | `response.googleAnthropicClaudeResponse.usage.outputTokens` | `response.googleAnthropicClaudeResponse.contentBlocks` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.text` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.textContent.text` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.textContent.cacheControl.type` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.imageUrl.mediaType` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.thinking.signature` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.thinking.thinking` | `response.googleAnthropicClaudeResponse.contentBlocks.${number}.redactedThinking.data` | `response.invokeAnthropicModelResponse.responseId` | `response.invokeAnthropicModelResponse.model` | `response.invokeAnthropicModelResponse.type` | `response.invokeAnthropicModelResponse.role` | `response.invokeAnthropicModelResponse.usage.cacheCreation.ephemeral1hInputTokens` | `response.invokeAnthropicModelResponse.usage.cacheCreation.ephemeral5mInputTokens` | `response.invokeAnthropicModelResponse.usage.inputTokens` | `response.invokeAnthropicModelResponse.usage.outputTokens` | `response.invokeAnthropicModelResponse.usage.serverToolUse.webSearchRequests` | `response.invokeAnthropicModelResponse.usage.serverToolUse.webFetchRequests` | `response.invokeAnthropicModelResponse.container.expiresAt` | `response.invokeAnthropicModelResponse.container._id` | `response.invokeAnthropicModelResponse.content` | `response.invokeAnthropicModelResponse.content.${number}.textContent.text` | `response.invokeAnthropicModelResponse.content.${number}.textContent.cacheControl.type` | `response.invokeAnthropicModelResponse.content.${number}.image.mediaType` | `response.invokeAnthropicModelResponse.content.${number}.thinking.signature` | `response.invokeAnthropicModelResponse.content.${number}.thinking.thinking` | `response.invokeAnthropicModelResponse.content.${number}.redactedThinking.data` | `response.invokeAnthropicModelResponse.content.${number}.document.type` | `response.invokeAnthropicModelResponse.content.${number}.webFetchToolResult.contentSuccess.type` | `response.invokeAnthropicModelResponse.content.${number}.webFetchToolResult.contentError.type` | `response.invokeAnthropicModelResponse.content.${number}.webFetchToolResult.type` | `response.perplexityChatCompletionResponse.model` | `response.perplexityChatCompletionResponse.citations` | `response.perplexityChatCompletionResponse.choices` | `response.perplexityChatCompletionResponse.choices.${number}.message.content` | `response.perplexityChatCompletionResponse.choices.${number}.message.role` | `response.perplexityChatCompletionResponse.images` | `response.perplexityChatCompletionResponse.relatedQuestions` | `response.openAiCreateImageResponse.data` | `response.openAiCreateImageResponse.model` | `response.stabilityAiTextToImageResponse.data` | `response.stabilityAiTextToImageResponse.model` | `response.stabilityAiGenerateCoreResponse.data` | `response.stabilityAiGenerateCoreResponse.model` | `response.stabilityAiStableDiffusionResponse.data` | `response.stabilityAiStableDiffusionResponse.model` | `response.replicateCreatePredictionResponse.output` | `response.stabilityAiEditImageWithPromptResponse.data` | `response.stabilityAiEditImageWithPromptResponse.model` | `response.runwareTextToImageResponse.data` | `response.runwareTextToImageResponse.data.${number}.taskUuid` | `response.runwareTextToImageResponse.data.${number}.imageUuid` | `response.runwareTextToImageResponse.data.${number}.nsfwContent` | `response.googleGenerateImageResponse.predictions` | `response.googleGenerateVideoResponse.videos` | `response.mlPlatformGenerateImageResponse.output` | `response.openAiCreateOpenAiImageResponse.data` | `response.openAiCreateOpenAiImageResponse.model` | `response.openAiEditOpenAiImageResponse.data` | `response.openAiEditOpenAiImageResponse.model` | `response.googleCreateChatCompletionResponse.model` | `response.googleCreateChatCompletionResponse.choices` | `response.googleCreateChatCompletionResponse.choices.${number}.message.role` | `response.mlPlatformOpenAiRawResponse.modelId` | `response.mlPlatformOpenAiRawResponse.choices` | `response.mlPlatformOpenAiRawResponse.choices.${number}.message.role` | `response.runwareVideoInferenceResponse.data` | `response.runwareVideoInferenceResponse.data.${number}.taskType` | `response.runwareVideoInferenceResponse.data.${number}.taskUuid` | `response.openAiResponsesResponse.model` | `response.openAiResponsesResponse.output` | `response.azureOpenAiResponsesResponse.model` | `response.azureOpenAiResponsesResponse.output` | `response.generatedContent.texts` | `response.generatedContent.images` | `response.generatedContent.images.${number}.url` | `response.generatedContent.videos` | `response.generatedContent.thinkingTexts` | `materializedPrompt.openAiChatCompletionRequest.model` | `materializedPrompt.openAiChatCompletionRequest.messages` | `materializedPrompt.openAiChatCompletionRequest.messages.${number}.role` | `materializedPrompt.openAiChatCompletionRequest.functions` | `materializedPrompt.openAiChatCompletionRequest.stop` | `materializedPrompt.openAiChatCompletionRequest.tools` | `materializedPrompt.openAiChatCompletionRequest.tools.${number}.type` | `materializedPrompt.googleTextBisonRequest.instances` | `materializedPrompt.googleTextBisonRequest.parameters.stopSequences` | `materializedPrompt.googleTextBisonRequest.model` | `materializedPrompt.googleChatBisonRequest.instances` | `materializedPrompt.googleChatBisonRequest.model` | `materializedPrompt.azureChatCompletionRequest.model` | `materializedPrompt.azureChatCompletionRequest.messages` | `materializedPrompt.azureChatCompletionRequest.messages.${number}.role` | `materializedPrompt.azureChatCompletionRequest.functions` | `materializedPrompt.azureChatCompletionRequest.stop` | `materializedPrompt.azureChatCompletionRequest.tools` | `materializedPrompt.azureChatCompletionRequest.tools.${number}.type` | `materializedPrompt.googleGeminiGenerateContentRequest.model` | `materializedPrompt.googleGeminiGenerateContentRequest.contents` | `materializedPrompt.googleGeminiGenerateContentRequest.contents.${number}.role` | `materializedPrompt.googleGeminiGenerateContentRequest.systemInstruction.parts` | `materializedPrompt.googleGeminiGenerateContentRequest.tools` | `materializedPrompt.googleGeminiGenerateContentRequest.tools.${number}.googleSearchRetrieval.dynamicRetrievalConfig.mode` | `materializedPrompt.googleGeminiGenerateContentRequest.safetySettings` | `materializedPrompt.googleGeminiGenerateContentRequest.safetySettings.${number}.category` | `materializedPrompt.googleGeminiGenerateContentRequest.safetySettings.${number}.threshold` | `materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.stopSequences` | `materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.responseModalities` | `materializedPrompt.googleGeminiGenerateContentRequest.toolConfig.functionCallingConfig.mode` | `materializedPrompt.googleGeminiGenerateContentRequest.toolConfig.functionCallingConfig.allowedFunctionNames` | `materializedPrompt.anthropicClaudeRequest.model` | `materializedPrompt.anthropicClaudeRequest.messages` | `materializedPrompt.anthropicClaudeRequest.messages.${number}.role` | `materializedPrompt.anthropicClaudeRequest.systemPrompt` | `materializedPrompt.anthropicClaudeRequest.stopSequences` | `materializedPrompt.anthropicClaudeRequest.tools` | `materializedPrompt.anthropicClaudeRequest.tools.${number}.cacheControl.type` | `materializedPrompt.anthropicClaudeRequest.toolChoice.type` | `materializedPrompt.anthropicClaudeRequest.thinking.budgetTokens` | `materializedPrompt.anthropicClaudeRequest.mcpServers` | `materializedPrompt.anthropicClaudeRequest.mcpServers.${number}.name` | `materializedPrompt.anthropicClaudeRequest.mcpServers.${number}.type` | `materializedPrompt.googleAnthropicClaudeRequest.model` | `materializedPrompt.googleAnthropicClaudeRequest.messages` | `materializedPrompt.googleAnthropicClaudeRequest.messages.${number}.role` | `materializedPrompt.googleAnthropicClaudeRequest.systemPrompt` | `materializedPrompt.googleAnthropicClaudeRequest.stopSequences` | `materializedPrompt.googleAnthropicClaudeRequest.tools` | `materializedPrompt.googleAnthropicClaudeRequest.tools.${number}.cacheControl.type` | `materializedPrompt.googleAnthropicClaudeRequest.toolChoice.type` | `materializedPrompt.googleAnthropicClaudeRequest.thinking.budgetTokens` | `materializedPrompt.googleAnthropicClaudeRequest.mcpServers` | `materializedPrompt.googleAnthropicClaudeRequest.mcpServers.${number}.name` | `materializedPrompt.googleAnthropicClaudeRequest.mcpServers.${number}.type` | `materializedPrompt.invokeAnthropicModelRequest.model` | `materializedPrompt.invokeAnthropicModelRequest.messages` | `materializedPrompt.invokeAnthropicModelRequest.messages.${number}.role` | `materializedPrompt.invokeAnthropicModelRequest.systemPrompt` | `materializedPrompt.invokeAnthropicModelRequest.stopSequences` | `materializedPrompt.invokeAnthropicModelRequest.tools` | `materializedPrompt.invokeAnthropicModelRequest.tools.${number}.custom.name` | `materializedPrompt.invokeAnthropicModelRequest.tools.${number}.custom.cacheControl.type` | `materializedPrompt.invokeAnthropicModelRequest.tools.${number}.computerUse.displayWidthPx` | `materializedPrompt.invokeAnthropicModelRequest.tools.${number}.computerUse.displayHeightPx` | `materializedPrompt.invokeAnthropicModelRequest.toolChoice.type` | `materializedPrompt.invokeAnthropicModelRequest.thinking.budgetTokens` | `materializedPrompt.invokeAnthropicModelRequest.mcpServers` | `materializedPrompt.invokeAnthropicModelRequest.mcpServers.${number}.name` | `materializedPrompt.invokeAnthropicModelRequest.mcpServers.${number}.type` | `materializedPrompt.llamaModelRequest.model` | `materializedPrompt.openAiCreateImageRequest.model` | `materializedPrompt.openAiCreateImageRequest.quality` | `materializedPrompt.openAiCreateImageRequest.size` | `materializedPrompt.openAiCreateImageRequest.style` | `materializedPrompt.stabilityAiTextToImageRequest.model` | `materializedPrompt.stabilityAiTextToImageRequest.textPrompts` | `materializedPrompt.stabilityAiTextToImageRequest.clipGuidancePreset` | `materializedPrompt.stabilityAiTextToImageRequest.sampler` | `materializedPrompt.stabilityAiTextToImageRequest.stylePreset` | `materializedPrompt.stabilityAiGenerateCoreRequest.model` | `materializedPrompt.stabilityAiGenerateCoreRequest.stylePreset` | `materializedPrompt.stabilityAiStableDiffusionRequest.mode` | `materializedPrompt.stabilityAiStableDiffusionRequest.model` | `materializedPrompt.stabilityAiStableDiffusionRequest.outputFormat` | `materializedPrompt.blackForestLabsGenerateImageRequest.model` | `materializedPrompt.replicateCreatePredictionRequest.model` | `materializedPrompt.stabilityAiEditWithPromptRequest.model` | `materializedPrompt.stabilityAiEditWithPromptRequest.stylePreset` | `materializedPrompt.runwareTextToImageRequest.positivePrompt` | `materializedPrompt.runwareTextToImageRequest.height` | `materializedPrompt.runwareTextToImageRequest.width` | `materializedPrompt.runwareTextToImageRequest.referenceImages` | `materializedPrompt.runwareTextToImageRequest.model` | `materializedPrompt.runwareTextToImageRequest.loraModels` | `materializedPrompt.mlPlatformLlamaModelRequest.modelId` | `materializedPrompt.perplexityChatCompletionRequest.model` | `materializedPrompt.perplexityChatCompletionRequest.messages` | `materializedPrompt.perplexityChatCompletionRequest.messages.${number}.content` | `materializedPrompt.perplexityChatCompletionRequest.messages.${number}.role` | `materializedPrompt.perplexityChatCompletionRequest.searchDomainFilter` | `materializedPrompt.perplexityChatCompletionRequest.responseFormat.jsonSchema` | `materializedPrompt.perplexityChatCompletionRequest.responseFormat.regex` | `materializedPrompt.googleGenerateImageRequest.model` | `materializedPrompt.googleGenerateImageRequest.instances` | `materializedPrompt.mlPlatformGenerateImageRequest.model` | `materializedPrompt.openAiCreateOpenAiImageRequest.model` | `materializedPrompt.openAiEditOpenAiImageRequest.model` | `materializedPrompt.openAiEditOpenAiImageRequest.imageUrls` | `materializedPrompt.googleGenerateVideoRequest.model` | `materializedPrompt.googleGenerateVideoRequest.instances` | `materializedPrompt.googleCreateChatCompletionRequest.model` | `materializedPrompt.googleCreateChatCompletionRequest.messages` | `materializedPrompt.googleCreateChatCompletionRequest.messages.${number}.role` | `materializedPrompt.mlPlatformOpenAiRawRequest.modelId` | `materializedPrompt.mlPlatformOpenAiRawRequest.messages` | `materializedPrompt.mlPlatformOpenAiRawRequest.messages.${number}.role` | `materializedPrompt.runwareVideoInferenceRequest.outputFormat` | `materializedPrompt.runwareVideoInferenceRequest.frameImages` | `materializedPrompt.runwareVideoInferenceRequest.frameImages.${number}.inputImage` | `materializedPrompt.runwareVideoInferenceRequest.referenceImages` | `materializedPrompt.runwareVideoInferenceRequest.model` | `materializedPrompt.openAiResponsesRequest.model` | `materializedPrompt.openAiResponsesRequest.include` | `materializedPrompt.openAiResponsesRequest.input` | `materializedPrompt.openAiResponsesRequest.input.${number}.message.role` | `materializedPrompt.openAiResponsesRequest.tools` | `materializedPrompt.azureOpenAiResponsesRequest.model` | `materializedPrompt.azureOpenAiResponsesRequest.include` | `materializedPrompt.azureOpenAiResponsesRequest.input` | `materializedPrompt.azureOpenAiResponsesRequest.input.${number}.message.role` | `materializedPrompt.azureOpenAiResponsesRequest.tools` | `materializedPrompt.templatedParameterNames` | `materializedPrompt.templatedDynamicPropertiesNames` | `predictionId`, 8>>;
8977
9015
  interface GenerateContentByPromptObjectOptions {
8978
9016
  /** Prompt object that describes the content generation request. */
8979
9017
  prompt?: Prompt;
@@ -8999,7 +9037,7 @@ interface GenerateContentByPromptObjectOptions {
8999
9037
  * @permissionId API_INFRA.WIX_AI_EXTERNAL_GENERATE_TEXT
9000
9038
  * @fqn wix.api_infra.v1.WixAiExternalGateway.GenerateTextByPromptObjectStreamed
9001
9039
  */
9002
- declare function generateTextByPromptObjectStreamed(options?: GenerateTextByPromptObjectStreamedOptions): Promise<NonNullablePaths<GeneratedTextChunk, `azureChatCompletionChunk.choices` | `azureChatCompletionChunk.choices.${number}.delta.role` | `azureChatCompletionChunk.model` | `openaiChatCompletionChunk.choices` | `openaiChatCompletionChunk.choices.${number}.delta.role` | `openaiChatCompletionChunk.model` | `googleAnthropicStreamChunk.toolUse.cacheControl.type` | `googleAnthropicStreamChunk.contentBlockDelta.text` | `googleAnthropicStreamChunk.contentBlockDelta.partialJson` | `googleAnthropicStreamChunk.contentBlockDelta.thinking` | `googleAnthropicStreamChunk.contentBlockDelta.signature` | `googleAnthropicStreamChunk.messageDelta.usage.inputTokens` | `googleAnthropicStreamChunk.messageDelta.usage.outputTokens` | `googleAnthropicStreamChunk.redactedThinking.data` | `googleAnthropicStreamChunk.responseId` | `googleAnthropicStreamChunk.model` | `googleGeminiStreamChunk.candidates` | `googleGeminiStreamChunk.candidates.${number}.finishReason` | `googleGeminiStreamChunk.usageMetadata.promptTokensDetails` | `googleGeminiStreamChunk.usageMetadata.promptTokensDetails.${number}.modality` | `googleGeminiStreamChunk.usageMetadata.candidatesTokensDetails` | `amazonAnthropicStreamChunk.toolUse.cacheControl.type` | `amazonAnthropicStreamChunk.contentBlockDelta.text` | `amazonAnthropicStreamChunk.contentBlockDelta.partialJson` | `amazonAnthropicStreamChunk.contentBlockDelta.thinking` | `amazonAnthropicStreamChunk.contentBlockDelta.signature` | `amazonAnthropicStreamChunk.messageDelta.usage.inputTokens` | `amazonAnthropicStreamChunk.messageDelta.usage.outputTokens` | `amazonAnthropicStreamChunk.redactedThinking.data` | `amazonAnthropicStreamChunk.responseId` | `amazonAnthropicStreamChunk.model` | `anthropicStreamChunk.webSearchToolResult.contentResults.items` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.type` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.type` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.textContent.text` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.textContent.cacheControl.type` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.image.mediaType` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.thinking.signature` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.thinking.thinking` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.redactedThinking.data` | `anthropicStreamChunk.webFetchToolResult.contentError.type` | `anthropicStreamChunk.webFetchToolResult.type` | `anthropicStreamChunk.contentBlockDelta.text` | `anthropicStreamChunk.contentBlockDelta.partialJson` | `anthropicStreamChunk.contentBlockDelta.thinking` | `anthropicStreamChunk.contentBlockDelta.signature` | `anthropicStreamChunk.messageDelta.usage.cacheCreation.ephemeral1hInputTokens` | `anthropicStreamChunk.messageDelta.usage.cacheCreation.ephemeral5mInputTokens` | `anthropicStreamChunk.messageDelta.usage.inputTokens` | `anthropicStreamChunk.messageDelta.usage.outputTokens` | `anthropicStreamChunk.messageDelta.usage.serverToolUse.webSearchRequests` | `anthropicStreamChunk.messageDelta.usage.serverToolUse.webFetchRequests` | `anthropicStreamChunk.responseId` | `anthropicStreamChunk.model` | `predictionId`, 11>>;
9040
+ declare function generateTextByPromptObjectStreamed(options?: GenerateTextByPromptObjectStreamedOptions): Promise<NonNullablePaths<GeneratedTextChunk, `azureChatCompletionChunk.choices` | `azureChatCompletionChunk.choices.${number}.delta.role` | `azureChatCompletionChunk.model` | `openaiChatCompletionChunk.choices` | `openaiChatCompletionChunk.choices.${number}.delta.role` | `openaiChatCompletionChunk.model` | `googleAnthropicStreamChunk.toolUse.cacheControl.type` | `googleAnthropicStreamChunk.contentBlockDelta.text` | `googleAnthropicStreamChunk.contentBlockDelta.partialJson` | `googleAnthropicStreamChunk.contentBlockDelta.thinking` | `googleAnthropicStreamChunk.contentBlockDelta.signature` | `googleAnthropicStreamChunk.messageDelta.usage.inputTokens` | `googleAnthropicStreamChunk.messageDelta.usage.outputTokens` | `googleAnthropicStreamChunk.redactedThinking.data` | `googleAnthropicStreamChunk.responseId` | `googleAnthropicStreamChunk.model` | `googleGeminiStreamChunk.candidates` | `googleGeminiStreamChunk.candidates.${number}.finishReason` | `googleGeminiStreamChunk.usageMetadata.promptTokensDetails` | `googleGeminiStreamChunk.usageMetadata.promptTokensDetails.${number}.modality` | `googleGeminiStreamChunk.usageMetadata.candidatesTokensDetails` | `amazonAnthropicStreamChunk.toolUse.cacheControl.type` | `amazonAnthropicStreamChunk.contentBlockDelta.text` | `amazonAnthropicStreamChunk.contentBlockDelta.partialJson` | `amazonAnthropicStreamChunk.contentBlockDelta.thinking` | `amazonAnthropicStreamChunk.contentBlockDelta.signature` | `amazonAnthropicStreamChunk.messageDelta.usage.inputTokens` | `amazonAnthropicStreamChunk.messageDelta.usage.outputTokens` | `amazonAnthropicStreamChunk.redactedThinking.data` | `amazonAnthropicStreamChunk.responseId` | `amazonAnthropicStreamChunk.model` | `anthropicStreamChunk.toolUse.cacheControl.type` | `anthropicStreamChunk.webSearchToolResult.contentResults.items` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.type` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.type` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.textContent.text` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.image.mediaType` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.thinking.signature` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.thinking.thinking` | `anthropicStreamChunk.webFetchToolResult.contentSuccess.content.source.content.${number}.redactedThinking.data` | `anthropicStreamChunk.webFetchToolResult.contentError.type` | `anthropicStreamChunk.webFetchToolResult.type` | `anthropicStreamChunk.contentBlockDelta.text` | `anthropicStreamChunk.contentBlockDelta.partialJson` | `anthropicStreamChunk.contentBlockDelta.thinking` | `anthropicStreamChunk.contentBlockDelta.signature` | `anthropicStreamChunk.messageDelta.usage.cacheCreation.ephemeral1hInputTokens` | `anthropicStreamChunk.messageDelta.usage.cacheCreation.ephemeral5mInputTokens` | `anthropicStreamChunk.messageDelta.usage.inputTokens` | `anthropicStreamChunk.messageDelta.usage.outputTokens` | `anthropicStreamChunk.messageDelta.usage.serverToolUse.webSearchRequests` | `anthropicStreamChunk.messageDelta.usage.serverToolUse.webFetchRequests` | `anthropicStreamChunk.responseId` | `anthropicStreamChunk.model` | `predictionId`, 10>>;
9003
9041
  interface GenerateTextByPromptObjectStreamedOptions {
9004
9042
  /** Prompt object that describes the text generation request. */
9005
9043
  prompt?: Prompt;
@@ -9021,4 +9059,4 @@ interface GenerateTextByPromptObjectStreamedOptions {
9021
9059
  asyncResultTopic?: string | null;
9022
9060
  }
9023
9061
 
9024
- export { type Action, type AnthropicClaudeMessage, type AnthropicMessage, AnthropicModel, type AnthropicModelWithLiterals, type AnthropicStreamChunk, type AnthropicStreamChunkContentOneOf, type AnthropicStreamChunkMessageDelta, type AsyncGenerationConfig, type BashTool, type Blob, type BuiltInTool, type CacheControl, CacheControlType, type CacheControlTypeWithLiterals, type Candidate, type CandidateCitationMetadata, type CandidateCitationMetadataCitation, type CandidateContent, type CandidateContentPart, type CharLocationCitation, ChatBisonModel, type ChatBisonModelWithLiterals, type ChatBisonPredictRequest, type ChatBisonPredictResponse, type ChatBisonPrediction, type ChatCompletionChunk, type ChatCompletionChunkChunkChoice, type ChatCompletionMessage, type ChatCompletionMessageContentPart, type ChatCompletionMessageContentPartContentValueOneOf, type ChatCompletionMessageFunctionWithArgs, type ChatCompletionMessageImageUrlContent, ChatCompletionMessageMessageRole, type ChatCompletionMessageMessageRoleWithLiterals, type ChatCompletionMessageToolCall, ChatCompletionModel, type ChatCompletionModelWithLiterals, type ChatInstance, type ChatMessage, type Choice, type ChunkChoice, type ChunkChoiceChunkDelta, type ChunkDelta, type Citation, type CitationMetadata, type CitationTypeOneOf, type CitationsEnabled, ClaudeModel, type ClaudeModelWithLiterals, ClipGuidancePreset, type ClipGuidancePresetWithLiterals, type CodeExecution, type CodeExecutionResult, type CodeExecutionTool, type CodeExecutionToolResult, type CodeExecutionToolResultContentOneOf, type CodeExecutionToolResultError, type CompletionTokenDetails, type ComputerUseTool, type Container, type ContainerUpload, type Content, type ContentBlock, type ContentBlockDelta, type ContentBlockDeltaDeltaOneOf, type ContentBlockLocationCitation, type ContentBlockTypeOneOf, type ContentData, type ContentPart, type ContentPartContentValueOneOf, ContentRole, type ContentRoleWithLiterals, type CreateChatCompletionRequest, type CreateChatCompletionRequestFunctionCallOneOf, type CreateChatCompletionRequestFunctionSignature, type CreateChatCompletionRequestResponseFormat, type CreateChatCompletionRequestTool, type CreateChatCompletionResponse, type CreateChatCompletionResponseChoice, type CreateChatCompletionResponseCompletionTokenDetails, type CreateChatCompletionResponsePromptTokenDetails, type CreateChatCompletionResponseTokenUsage, type CreateImageOpenAiRequest, type CreateImageOpenAiResponse, type CreateImageRequest, type CreateImageResponse, CreatePredictionModel, type CreatePredictionModelWithLiterals, type CreatePredictionRequest, type CreatePredictionRequestInputOneOf, type CreatePredictionResponse, type CustomTool, type DocumentContent, type DocumentSource, type DynamicRequestConfig, type DynamicRetrievalConfig, type EditImageOpenAiRequest, type EditImageOpenAiResponse, type EditImageWithPromptRequest, EditImageWithPromptRequestModel, type EditImageWithPromptRequestModelWithLiterals, type EditImageWithPromptResponse, type Example, type ExecutableCode, type FallbackPromptConfig, type FallbackProperties, type FileInput, type FineTuningSpec, FinishReason, type FinishReasonWithLiterals, type FluxDevControlnet, type FluxPulid, type FrameImage, type FunctionCall, type FunctionDeclaration, type FunctionResponse, type FunctionSignature, type FunctionWithArgs, type GatewayContentBlock, type GatewayContentBlockTypeOneOf, type GatewayMessageDefinition, GatewayMessageDefinitionRole, type GatewayMessageDefinitionRoleWithLiterals, type GatewayToolDefinition, type GatewayToolDefinitionCustomTool, type GatewayToolDefinitionToolOneOf, GenerateAnImageModel, type GenerateAnImageModelWithLiterals, type GenerateAnImageRequest, type GenerateAnImageResponse, type GenerateContentByPromptObjectOptions, type GenerateContentByPromptObjectRequest, type GenerateContentByPromptObjectResponse, type GenerateContentModelResponse, type GenerateContentModelResponseResponseOneOf, type GenerateContentRequest, type GenerateContentResponse, type GenerateCoreRequest, GenerateCoreRequestStylePreset, type GenerateCoreRequestStylePresetWithLiterals, type GenerateCoreResponse, GenerateImageMlPlatformModel, type GenerateImageMlPlatformModelWithLiterals, type GenerateImageMlPlatformRequest, type GenerateImageMlPlatformRequestInputOneOf, type GenerateImageMlPlatformResponse, type GenerateImageRequest, type GenerateImageResponse, type GenerateStableDiffusionRequest, GenerateStableDiffusionRequestOutputFormat, type GenerateStableDiffusionRequestOutputFormatWithLiterals, type GenerateStableDiffusionResponse, type GenerateTextByPromptObjectRequest, type GenerateTextByPromptObjectStreamedOptions, type GenerateVideoInstance, type GenerateVideoParameters, type GenerateVideoRequest, type GenerateVideoResponse, type GeneratedContent, type GeneratedTextChunk, type GeneratedTextChunkModelChunkOneOf, type GeneratedVideo, type GenerationConfig, GenerationMode, type GenerationModeWithLiterals, type GenerationThinkingConfig, type GoogleSearch, type GoogleSearchRetrieval, type GoogleproxyV1AnthropicStreamChunk, type GoogleproxyV1AnthropicStreamChunkContentOneOf, type GoogleproxyV1CacheControl, type GoogleproxyV1ChatCompletionMessage, type GoogleproxyV1ContentBlock, type GoogleproxyV1ContentBlockDelta, type GoogleproxyV1ContentBlockDeltaDeltaOneOf, type GoogleproxyV1ContentBlockTypeOneOf, type GoogleproxyV1ImageUrl, type GoogleproxyV1InputSchema, type GoogleproxyV1McpServer, GoogleproxyV1McpServerType, type GoogleproxyV1McpServerTypeWithLiterals, GoogleproxyV1Model, type GoogleproxyV1ModelWithLiterals, type GoogleproxyV1RedactedThinking, GoogleproxyV1ResponseTypeType, type GoogleproxyV1ResponseTypeTypeWithLiterals, type GoogleproxyV1Text, type GoogleproxyV1Thinking, type GoogleproxyV1ThinkingConfig, type GoogleproxyV1Tool, type GoogleproxyV1ToolChoice, GoogleproxyV1ToolChoiceType, type GoogleproxyV1ToolChoiceTypeWithLiterals, type GoogleproxyV1ToolResult, type GoogleproxyV1ToolUse, type GoogleproxyV1Usage, type GroundingChunk, type GroundingChunkChunkTypeOneOf, type GroundingMetadata, type GroundingSupport, HarmCategory, type HarmCategoryWithLiterals, HarmProbability, type HarmProbabilityWithLiterals, ImageCoreModel, type ImageCoreModelWithLiterals, type ImageInput, ImageMediaTypeMediaType, type ImageMediaTypeMediaTypeWithLiterals, ImageModel, type ImageModelWithLiterals, type ImageObject, ImageQuality, type ImageQualityWithLiterals, ImageSize, type ImageSizeWithLiterals, ImageStableDiffusionModel, type ImageStableDiffusionModelWithLiterals, ImageStyle, type ImageStyleWithLiterals, type ImageUrl, type ImageUrlContent, type ImageUsage, ImagenModel, type ImagenModelWithLiterals, type IncompleteDetails, type InputSchema, type Instance, type InvokeAnthropicClaudeModelRequest, type InvokeAnthropicClaudeModelRequestTool, type InvokeAnthropicClaudeModelResponse, type InvokeAnthropicModelRequest, type InvokeAnthropicModelResponse, type InvokeChatCompletionRequest, type InvokeChatCompletionRequestResponseFormat, type InvokeChatCompletionRequestResponseFormatFormatDetailsOneOf, type InvokeChatCompletionResponse, type InvokeChatCompletionResponseChoice, type InvokeChatCompletionResponseUsage, type InvokeLlamaModelRequest, type InvokeLlamaModelResponse, type InvokeMlPlatformLlamaModelRequest, type InvokeMlPlatformLlamaModelResponse, type InvokeMlPlatformOpenAIChatCompletionRawRequest, type InvokeMlPlatformOpenAIChatCompletionRawResponse, type JsonSchema, Language, type LanguageWithLiterals, LlamaModel, type LlamaModelWithLiterals, type LoraModelSelect, type McpServer, type McpServerToolConfiguration, McpServerType, type McpServerTypeWithLiterals, type McpToolUse, type MediaContent, MediaType, type MediaTypeWithLiterals, type MessageDelta, MessageRole, MessageRoleRole, type MessageRoleRoleWithLiterals, type MessageRoleWithLiterals, type Metadata, Modality, type ModalityTokenCount, type ModalityWithLiterals, Mode, type ModeWithLiterals, Model, type ModelWithLiterals, OpenAiImageModel, type OpenAiImageModelWithLiterals, type OpenAiImageTokenDetails, type OpenAiResponsesRequest, type OpenAiResponsesResponse, type OpenAiResponsesResponseIncompleteDetails, type OpenaiproxyV1ChatCompletionMessage, type OpenaiproxyV1ChatCompletionMessageContentPart, type OpenaiproxyV1ChatCompletionMessageContentPartContentValueOneOf, type OpenaiproxyV1ChatCompletionMessageImageUrlContent, OpenaiproxyV1ChatCompletionMessageMessageRole, type OpenaiproxyV1ChatCompletionMessageMessageRoleWithLiterals, type OpenaiproxyV1CreateChatCompletionRequest, type OpenaiproxyV1CreateChatCompletionRequestFunctionCallOneOf, type OpenaiproxyV1CreateChatCompletionRequestResponseFormat, type OpenaiproxyV1CreateChatCompletionResponse, type OpenaiproxyV1CreateChatCompletionResponseChoice, type OpenaiproxyV1CreateChatCompletionResponseTokenUsage, OpenaiproxyV1Model, type OpenaiproxyV1ModelWithLiterals, Outcome, type OutcomeWithLiterals, type OutpaintDirection, type OutputAnnotation, type OutputAnnotationAnnotationTypeOneOf, type OutputContent, OutputFormat, type OutputFormatWithLiterals, type OutputOptions, type PageLocationCitation, type Parameters, type PerplexityImageDescriptor, type PerplexityMessage, PerplexityMessageMessageRole, type PerplexityMessageMessageRoleWithLiterals, PerplexityModel, type PerplexityModelWithLiterals, type PredictParameters, type Prediction, type Prompt, type PromptModelRequestOneOf, type PromptProxy, type PromptTokenDetails, type PublicationDate, type RedactedThinking, type RequestMetadata, type ResponseFormat, type ResponseMetadata, ResponseTypeType, type ResponseTypeTypeWithLiterals, type ResponsesCodeInterpreter, type ResponsesCodeInterpreterContainer, type ResponsesCodeInterpreterContainerAuto, type ResponsesCodeInterpreterContainerContainerTypeOneOf, type ResponsesCodeInterpreterImageOutput, type ResponsesCodeInterpreterLogsOutput, type ResponsesCodeInterpreterOutput, type ResponsesCodeInterpreterOutputOutputTypeOneOf, type ResponsesCodeInterpreterToolCall, type ResponsesFunction, type ResponsesFunctionToolCall, type ResponsesFunctionToolCallOutput, type ResponsesInputItem, type ResponsesInputItemItemOneOf, type ResponsesInputMessage, type ResponsesInputMessageContent, type ResponsesInputMessageContentContentValueOneOf, type ResponsesInputMessageContentFileInput, type ResponsesInputMessageContentImageInput, ResponsesInputMessageResponsesMessageRole, type ResponsesInputMessageResponsesMessageRoleWithLiterals, type ResponsesInputTokensDetails, ResponsesMessageRole, type ResponsesMessageRoleWithLiterals, ResponsesModel, type ResponsesModelWithLiterals, type ResponsesOutput, type ResponsesOutputMessage, type ResponsesOutputMessageOutputContent, type ResponsesOutputOutputOneOf, type ResponsesOutputTokensDetails, type ResponsesReasoning, type ResponsesReasoningContent, type ResponsesReasoningOutput, type ResponsesReasoningSummaryContent, type ResponsesTextFormat, type ResponsesTextFormatFormatOneOf, type ResponsesTextFormatJsonSchema, type ResponsesTokenUsage, type ResponsesTool, type ResponsesToolChoice, type ResponsesToolToolTypeOneOf, type ResponsesWebSearch, type ResponsesWebSearchToolCall, type ResponsesWebSearchToolCallAction, type ResponsesWebSearchUserLocation, type ResultObject, type RetrievalMetadata, type RetrievedContext, Role, type RoleWithLiterals, type SafetyAttribute, type SafetyAttributes, type SafetyRating, type SafetySetting, Sampler, type SamplerWithLiterals, type SearchEntryPoint, type SearchResultLocationCitation, type Segment, type ServerToolUse, type SimpleContentBlock, type SimpleContentBlockTypeOneOf, StylePreset, type StylePresetWithLiterals, type SystemInstruction, type Text, TextBisonModel, type TextBisonModelWithLiterals, type TextBisonPredictRequest, type TextBisonPredictResponse, type TextBisonPrediction, type TextContent, type TextEditorTool, type TextInstance, type TextPrompt, type TextToImageRequest, TextToImageRequestModel, type TextToImageRequestModelWithLiterals, TextToImageRequestStylePreset, type TextToImageRequestStylePresetWithLiterals, type TextToImageResponse, type TextToImageTaskResult, type Thinking, type ThinkingConfig, type ThinkingTextContent, Threshold, type ThresholdWithLiterals, type TokenCount, type TokenMetadata, type TokenUsage, type Tool, type ToolCall, type ToolChoice, ToolChoiceType, type ToolChoiceTypeWithLiterals, type ToolConfiguration, type ToolResult, type ToolResultContent, type ToolResultContentBlock, type ToolResultContentBlockTypeOneOf, type ToolResultSearchResult, type ToolUse, type ToolUseContent, Type, type TypeWithLiterals, type UrlCitation, type Usage, type UsageCacheCreation, type UsageMetadata, type UsageServerToolUse, type UserLocation, type UserRequestInfo, type V1AnthropicClaudeMessage, type V1AnthropicStreamChunk, type V1AnthropicStreamChunkContentOneOf, type V1AnthropicStreamChunkMessageDelta, type V1CacheControl, V1CacheControlType, type V1CacheControlTypeWithLiterals, type V1ChatCompletionChunk, type V1ChatCompletionMessage, type V1ChatCompletionMessageContentPart, type V1ChatCompletionMessageContentPartContentValueOneOf, type V1ChatCompletionMessageImageUrlContent, V1ChatCompletionMessageMessageRole, type V1ChatCompletionMessageMessageRoleWithLiterals, type V1Citation, type V1CodeExecutionResult, type V1ContentBlock, type V1ContentBlockDelta, type V1ContentBlockDeltaDeltaOneOf, type V1ContentBlockTypeOneOf, type V1ContentPart, type V1CreateChatCompletionRequest, type V1CreateChatCompletionRequestResponseFormat, type V1CreateChatCompletionRequestTool, type V1CreateChatCompletionResponse, type V1CreateChatCompletionResponseChoice, type V1CreateChatCompletionResponseTokenUsage, type V1FineTuningSpec, type V1FluxPulid, type V1ImageInput, V1ImageMediaTypeMediaType, type V1ImageMediaTypeMediaTypeWithLiterals, V1ImageModel, type V1ImageModelWithLiterals, type V1ImageObject, type V1ImageUrl, type V1InputSchema, type V1InvokeAnthropicClaudeModelRequest, type V1InvokeAnthropicClaudeModelResponse, type V1McpServer, type V1McpServerToolConfiguration, V1McpServerType, type V1McpServerTypeWithLiterals, V1MessageRoleRole, type V1MessageRoleRoleWithLiterals, V1Model, type V1ModelWithLiterals, type V1OpenAiResponsesRequest, type V1OpenAiResponsesResponse, type V1OutputAnnotation, type V1OutputAnnotationAnnotationTypeOneOf, type V1RedactedThinking, V1ResponseTypeType, type V1ResponseTypeTypeWithLiterals, type V1ResponsesCodeInterpreter, type V1ResponsesCodeInterpreterContainer, type V1ResponsesCodeInterpreterContainerAuto, type V1ResponsesCodeInterpreterContainerContainerTypeOneOf, type V1ResponsesCodeInterpreterImageOutput, type V1ResponsesCodeInterpreterLogsOutput, type V1ResponsesCodeInterpreterOutput, type V1ResponsesCodeInterpreterOutputOutputTypeOneOf, type V1ResponsesCodeInterpreterToolCall, type V1ResponsesFunction, type V1ResponsesFunctionToolCall, type V1ResponsesFunctionToolCallOutput, type V1ResponsesInputItem, type V1ResponsesInputItemItemOneOf, type V1ResponsesInputMessage, type V1ResponsesInputMessageContent, type V1ResponsesInputMessageContentContentValueOneOf, type V1ResponsesInputTokensDetails, V1ResponsesModel, type V1ResponsesModelWithLiterals, type V1ResponsesOutput, type V1ResponsesOutputMessage, type V1ResponsesOutputOutputOneOf, type V1ResponsesOutputTokensDetails, type V1ResponsesReasoning, type V1ResponsesReasoningContent, type V1ResponsesReasoningOutput, type V1ResponsesReasoningSummaryContent, type V1ResponsesTextFormat, type V1ResponsesTextFormatFormatOneOf, type V1ResponsesTokenUsage, type V1ResponsesTool, type V1ResponsesToolChoice, type V1ResponsesToolToolTypeOneOf, type V1ResponsesWebSearch, type V1ResponsesWebSearchToolCall, type V1SimpleContentBlock, type V1SimpleContentBlockTypeOneOf, type V1Text, type V1TextToImageRequest, type V1TextToImageResponse, type V1Thinking, type V1ThinkingConfig, type V1TokenUsage, type V1Tool, type V1ToolChoice, V1ToolChoiceType, type V1ToolChoiceTypeWithLiterals, type V1ToolKindOneOf, type V1ToolResult, type V1ToolUse, type V1UrlCitation, type V1Usage, VideoGenModel, type VideoGenModelWithLiterals, type VideoInferenceRequest, type VideoInferenceResponse, type VideoInferenceTaskResult, VideoModel, type VideoModelWithLiterals, type Web, type WebFetchTool, type WebFetchToolResult, type WebFetchToolResultContentError, type WebFetchToolResultContentOneOf, type WebFetchToolResultContentSuccess, type WebSearchResult, type WebSearchResultList, type WebSearchResultLocationCitation, type WebSearchTool, type WebSearchToolResult, type WebSearchToolResultContentOneOf, type WebSearchToolResultError, type WebSearchUserLocation, generateContentByPromptObject, generateTextByPromptObjectStreamed };
9062
+ export { type Action, type AnthropicClaudeMessage, type AnthropicMessage, AnthropicModel, type AnthropicModelWithLiterals, type AnthropicStreamChunk, type AnthropicStreamChunkContentOneOf, type AnthropicStreamChunkMessageDelta, type AsyncGenerationConfig, type BashTool, type Blob, type BuiltInTool, type CacheControl, CacheControlType, type CacheControlTypeWithLiterals, type Candidate, type CandidateCitationMetadata, type CandidateCitationMetadataCitation, type CandidateContent, type CandidateContentPart, type CharLocationCitation, ChatBisonModel, type ChatBisonModelWithLiterals, type ChatBisonPredictRequest, type ChatBisonPredictResponse, type ChatBisonPrediction, type ChatCompletionChunk, type ChatCompletionChunkChunkChoice, type ChatCompletionMessage, type ChatCompletionMessageContentPart, type ChatCompletionMessageContentPartContentValueOneOf, type ChatCompletionMessageFunctionWithArgs, type ChatCompletionMessageImageUrlContent, ChatCompletionMessageMessageRole, type ChatCompletionMessageMessageRoleWithLiterals, type ChatCompletionMessageToolCall, ChatCompletionModel, type ChatCompletionModelWithLiterals, type ChatInstance, type ChatMessage, type Choice, type ChunkChoice, type ChunkChoiceChunkDelta, type ChunkDelta, type Citation, type CitationMetadata, type CitationTypeOneOf, type CitationsEnabled, ClaudeModel, type ClaudeModelWithLiterals, ClipGuidancePreset, type ClipGuidancePresetWithLiterals, type CodeExecution, type CodeExecutionResult, type CodeExecutionTool, type CodeExecutionToolResult, type CodeExecutionToolResultContentOneOf, type CodeExecutionToolResultError, type CompletionTokenDetails, type ComputerUseTool, type Container, type ContainerUpload, type Content, type ContentBlock, type ContentBlockDelta, type ContentBlockDeltaDeltaOneOf, type ContentBlockLocationCitation, type ContentBlockTypeOneOf, type ContentData, type ContentPart, type ContentPartContentValueOneOf, ContentRole, type ContentRoleWithLiterals, type CreateChatCompletionRequest, type CreateChatCompletionRequestFunctionCallOneOf, type CreateChatCompletionRequestFunctionSignature, type CreateChatCompletionRequestResponseFormat, type CreateChatCompletionRequestTool, type CreateChatCompletionResponse, type CreateChatCompletionResponseChoice, type CreateChatCompletionResponseCompletionTokenDetails, type CreateChatCompletionResponsePromptTokenDetails, type CreateChatCompletionResponseTokenUsage, type CreateImageOpenAiRequest, type CreateImageOpenAiResponse, type CreateImageRequest, type CreateImageResponse, CreatePredictionModel, type CreatePredictionModelWithLiterals, type CreatePredictionRequest, type CreatePredictionRequestInputOneOf, type CreatePredictionResponse, type CustomTool, type DocumentContent, type DocumentSource, type DynamicRequestConfig, type DynamicRetrievalConfig, DynamicRetrievalConfigMode, type DynamicRetrievalConfigModeWithLiterals, type EditImageOpenAiRequest, type EditImageOpenAiResponse, type EditImageWithPromptRequest, EditImageWithPromptRequestModel, type EditImageWithPromptRequestModelWithLiterals, type EditImageWithPromptResponse, type Example, type ExecutableCode, type FallbackPromptConfig, type FallbackProperties, type FileInput, type FineTuningSpec, FinishReason, type FinishReasonWithLiterals, type FluxDevControlnet, type FluxPulid, type FrameImage, type FunctionCall, type FunctionCallingConfig, type FunctionDeclaration, type FunctionResponse, type FunctionSignature, type FunctionWithArgs, type GatewayContentBlock, type GatewayContentBlockTypeOneOf, type GatewayMessageDefinition, GatewayMessageDefinitionRole, type GatewayMessageDefinitionRoleWithLiterals, type GatewayToolDefinition, type GatewayToolDefinitionCustomTool, type GatewayToolDefinitionToolOneOf, GenerateAnImageModel, type GenerateAnImageModelWithLiterals, type GenerateAnImageRequest, type GenerateAnImageResponse, type GenerateContentByPromptObjectOptions, type GenerateContentByPromptObjectRequest, type GenerateContentByPromptObjectResponse, type GenerateContentModelResponse, type GenerateContentModelResponseResponseOneOf, type GenerateContentRequest, type GenerateContentResponse, type GenerateCoreRequest, GenerateCoreRequestStylePreset, type GenerateCoreRequestStylePresetWithLiterals, type GenerateCoreResponse, GenerateImageMlPlatformModel, type GenerateImageMlPlatformModelWithLiterals, type GenerateImageMlPlatformRequest, type GenerateImageMlPlatformRequestInputOneOf, type GenerateImageMlPlatformResponse, type GenerateImageRequest, type GenerateImageResponse, type GenerateStableDiffusionRequest, GenerateStableDiffusionRequestOutputFormat, type GenerateStableDiffusionRequestOutputFormatWithLiterals, type GenerateStableDiffusionResponse, type GenerateTextByPromptObjectRequest, type GenerateTextByPromptObjectStreamedOptions, type GenerateVideoInstance, type GenerateVideoParameters, type GenerateVideoRequest, type GenerateVideoResponse, type GeneratedContent, type GeneratedTextChunk, type GeneratedTextChunkModelChunkOneOf, type GeneratedVideo, type GenerationConfig, GenerationMode, type GenerationModeWithLiterals, type GenerationThinkingConfig, type GoogleSearch, type GoogleSearchRetrieval, type GoogleproxyV1AnthropicStreamChunk, type GoogleproxyV1AnthropicStreamChunkContentOneOf, type GoogleproxyV1CacheControl, type GoogleproxyV1ChatCompletionMessage, type GoogleproxyV1ContentBlock, type GoogleproxyV1ContentBlockDelta, type GoogleproxyV1ContentBlockDeltaDeltaOneOf, type GoogleproxyV1ContentBlockTypeOneOf, type GoogleproxyV1ImageUrl, type GoogleproxyV1InputSchema, type GoogleproxyV1McpServer, GoogleproxyV1McpServerType, type GoogleproxyV1McpServerTypeWithLiterals, GoogleproxyV1Model, type GoogleproxyV1ModelWithLiterals, type GoogleproxyV1RedactedThinking, GoogleproxyV1ResponseTypeType, type GoogleproxyV1ResponseTypeTypeWithLiterals, type GoogleproxyV1Text, type GoogleproxyV1Thinking, type GoogleproxyV1ThinkingConfig, type GoogleproxyV1Tool, type GoogleproxyV1ToolChoice, GoogleproxyV1ToolChoiceType, type GoogleproxyV1ToolChoiceTypeWithLiterals, type GoogleproxyV1ToolResult, type GoogleproxyV1ToolUse, type GoogleproxyV1Usage, type GroundingChunk, type GroundingChunkChunkTypeOneOf, type GroundingMetadata, type GroundingSupport, HarmCategory, type HarmCategoryWithLiterals, HarmProbability, type HarmProbabilityWithLiterals, ImageCoreModel, type ImageCoreModelWithLiterals, type ImageInput, ImageMediaTypeMediaType, type ImageMediaTypeMediaTypeWithLiterals, ImageModel, type ImageModelWithLiterals, type ImageObject, ImageQuality, type ImageQualityWithLiterals, ImageSize, type ImageSizeWithLiterals, ImageStableDiffusionModel, type ImageStableDiffusionModelWithLiterals, ImageStyle, type ImageStyleWithLiterals, type ImageUrl, type ImageUrlContent, type ImageUsage, ImagenModel, type ImagenModelWithLiterals, type IncompleteDetails, type InputSchema, type Instance, type InvokeAnthropicClaudeModelRequest, type InvokeAnthropicClaudeModelRequestTool, type InvokeAnthropicClaudeModelResponse, type InvokeAnthropicModelRequest, type InvokeAnthropicModelResponse, type InvokeChatCompletionRequest, type InvokeChatCompletionRequestResponseFormat, type InvokeChatCompletionRequestResponseFormatFormatDetailsOneOf, type InvokeChatCompletionResponse, type InvokeChatCompletionResponseChoice, type InvokeChatCompletionResponseUsage, type InvokeLlamaModelRequest, type InvokeLlamaModelResponse, type InvokeMlPlatformLlamaModelRequest, type InvokeMlPlatformLlamaModelResponse, type InvokeMlPlatformOpenAIChatCompletionRawRequest, type InvokeMlPlatformOpenAIChatCompletionRawResponse, type JsonSchema, Language, type LanguageWithLiterals, LlamaModel, type LlamaModelWithLiterals, type LoraModelSelect, type McpServer, type McpServerToolConfiguration, McpServerType, type McpServerTypeWithLiterals, type McpToolUse, type MediaContent, MediaType, type MediaTypeWithLiterals, type MessageDelta, MessageRole, MessageRoleRole, type MessageRoleRoleWithLiterals, type MessageRoleWithLiterals, type Metadata, Modality, type ModalityTokenCount, type ModalityWithLiterals, Mode, type ModeWithLiterals, Model, type ModelWithLiterals, OpenAiImageModel, type OpenAiImageModelWithLiterals, type OpenAiImageTokenDetails, type OpenAiResponsesRequest, type OpenAiResponsesResponse, type OpenAiResponsesResponseIncompleteDetails, type OpenaiproxyV1ChatCompletionMessage, type OpenaiproxyV1ChatCompletionMessageContentPart, type OpenaiproxyV1ChatCompletionMessageContentPartContentValueOneOf, type OpenaiproxyV1ChatCompletionMessageImageUrlContent, OpenaiproxyV1ChatCompletionMessageMessageRole, type OpenaiproxyV1ChatCompletionMessageMessageRoleWithLiterals, type OpenaiproxyV1CreateChatCompletionRequest, type OpenaiproxyV1CreateChatCompletionRequestFunctionCallOneOf, type OpenaiproxyV1CreateChatCompletionRequestResponseFormat, type OpenaiproxyV1CreateChatCompletionResponse, type OpenaiproxyV1CreateChatCompletionResponseChoice, type OpenaiproxyV1CreateChatCompletionResponseTokenUsage, OpenaiproxyV1Model, type OpenaiproxyV1ModelWithLiterals, Outcome, type OutcomeWithLiterals, type OutpaintDirection, type OutputAnnotation, type OutputAnnotationAnnotationTypeOneOf, type OutputContent, OutputFormat, type OutputFormatWithLiterals, type OutputOptions, type PageLocationCitation, type Parameters, type PerplexityImageDescriptor, type PerplexityMessage, PerplexityMessageMessageRole, type PerplexityMessageMessageRoleWithLiterals, PerplexityModel, type PerplexityModelWithLiterals, type PredictParameters, type Prediction, type Prompt, type PromptModelRequestOneOf, type PromptProxy, type PromptTokenDetails, type PublicationDate, type RedactedThinking, type RequestMetadata, type ResponseFormat, type ResponseMetadata, ResponseTypeType, type ResponseTypeTypeWithLiterals, type ResponsesCodeInterpreter, type ResponsesCodeInterpreterContainer, type ResponsesCodeInterpreterContainerAuto, type ResponsesCodeInterpreterContainerContainerTypeOneOf, type ResponsesCodeInterpreterImageOutput, type ResponsesCodeInterpreterLogsOutput, type ResponsesCodeInterpreterOutput, type ResponsesCodeInterpreterOutputOutputTypeOneOf, type ResponsesCodeInterpreterToolCall, type ResponsesFunction, type ResponsesFunctionToolCall, type ResponsesFunctionToolCallOutput, type ResponsesInputItem, type ResponsesInputItemItemOneOf, type ResponsesInputMessage, type ResponsesInputMessageContent, type ResponsesInputMessageContentContentValueOneOf, type ResponsesInputMessageContentFileInput, type ResponsesInputMessageContentImageInput, ResponsesInputMessageResponsesMessageRole, type ResponsesInputMessageResponsesMessageRoleWithLiterals, type ResponsesInputTokensDetails, ResponsesMessageRole, type ResponsesMessageRoleWithLiterals, ResponsesModel, type ResponsesModelWithLiterals, type ResponsesOutput, type ResponsesOutputMessage, type ResponsesOutputMessageOutputContent, type ResponsesOutputOutputOneOf, type ResponsesOutputTokensDetails, type ResponsesReasoning, type ResponsesReasoningContent, type ResponsesReasoningOutput, type ResponsesReasoningSummaryContent, type ResponsesTextFormat, type ResponsesTextFormatFormatOneOf, type ResponsesTextFormatJsonSchema, type ResponsesTokenUsage, type ResponsesTool, type ResponsesToolChoice, type ResponsesToolToolTypeOneOf, type ResponsesWebSearch, type ResponsesWebSearchToolCall, type ResponsesWebSearchToolCallAction, type ResponsesWebSearchUserLocation, type ResultObject, type RetrievalMetadata, type RetrievedContext, Role, type RoleWithLiterals, type SafetyAttribute, type SafetyAttributes, type SafetyRating, type SafetySetting, Sampler, type SamplerWithLiterals, type SearchEntryPoint, type SearchResultLocationCitation, type Segment, type ServerToolUse, type SimpleContentBlock, type SimpleContentBlockTypeOneOf, StylePreset, type StylePresetWithLiterals, type SystemInstruction, type Text, TextBisonModel, type TextBisonModelWithLiterals, type TextBisonPredictRequest, type TextBisonPredictResponse, type TextBisonPrediction, type TextContent, type TextEditorTool, type TextInstance, type TextPrompt, type TextToImageRequest, TextToImageRequestModel, type TextToImageRequestModelWithLiterals, TextToImageRequestStylePreset, type TextToImageRequestStylePresetWithLiterals, type TextToImageResponse, type TextToImageTaskResult, type Thinking, type ThinkingConfig, type ThinkingTextContent, Threshold, type ThresholdWithLiterals, type TokenCount, type TokenMetadata, type TokenUsage, type Tool, type ToolCall, type ToolChoice, ToolChoiceType, type ToolChoiceTypeWithLiterals, type ToolConfig, type ToolConfiguration, type ToolResult, type ToolResultContent, type ToolResultContentBlock, type ToolResultContentBlockTypeOneOf, type ToolResultSearchResult, type ToolUse, type ToolUseContent, Type, type TypeWithLiterals, type UrlCitation, type Usage, type UsageCacheCreation, type UsageMetadata, type UsageServerToolUse, type UserLocation, type UserRequestInfo, type V1AnthropicClaudeMessage, type V1AnthropicStreamChunk, type V1AnthropicStreamChunkContentOneOf, type V1AnthropicStreamChunkMessageDelta, type V1CacheControl, V1CacheControlType, type V1CacheControlTypeWithLiterals, type V1ChatCompletionChunk, type V1ChatCompletionMessage, type V1ChatCompletionMessageContentPart, type V1ChatCompletionMessageContentPartContentValueOneOf, type V1ChatCompletionMessageImageUrlContent, V1ChatCompletionMessageMessageRole, type V1ChatCompletionMessageMessageRoleWithLiterals, type V1Citation, type V1CodeExecutionResult, type V1ContentBlock, type V1ContentBlockDelta, type V1ContentBlockDeltaDeltaOneOf, type V1ContentBlockTypeOneOf, type V1ContentPart, type V1CreateChatCompletionRequest, type V1CreateChatCompletionRequestResponseFormat, type V1CreateChatCompletionRequestTool, type V1CreateChatCompletionResponse, type V1CreateChatCompletionResponseChoice, type V1CreateChatCompletionResponseTokenUsage, type V1FineTuningSpec, type V1FluxPulid, type V1ImageInput, V1ImageMediaTypeMediaType, type V1ImageMediaTypeMediaTypeWithLiterals, V1ImageModel, type V1ImageModelWithLiterals, type V1ImageObject, type V1ImageUrl, type V1InputSchema, type V1InvokeAnthropicClaudeModelRequest, type V1InvokeAnthropicClaudeModelResponse, type V1McpServer, type V1McpServerToolConfiguration, V1McpServerType, type V1McpServerTypeWithLiterals, V1MessageRoleRole, type V1MessageRoleRoleWithLiterals, V1Model, type V1ModelWithLiterals, type V1OpenAiResponsesRequest, type V1OpenAiResponsesResponse, type V1OutputAnnotation, type V1OutputAnnotationAnnotationTypeOneOf, type V1RedactedThinking, V1ResponseTypeType, type V1ResponseTypeTypeWithLiterals, type V1ResponsesCodeInterpreter, type V1ResponsesCodeInterpreterContainer, type V1ResponsesCodeInterpreterContainerAuto, type V1ResponsesCodeInterpreterContainerContainerTypeOneOf, type V1ResponsesCodeInterpreterImageOutput, type V1ResponsesCodeInterpreterLogsOutput, type V1ResponsesCodeInterpreterOutput, type V1ResponsesCodeInterpreterOutputOutputTypeOneOf, type V1ResponsesCodeInterpreterToolCall, type V1ResponsesFunction, type V1ResponsesFunctionToolCall, type V1ResponsesFunctionToolCallOutput, type V1ResponsesInputItem, type V1ResponsesInputItemItemOneOf, type V1ResponsesInputMessage, type V1ResponsesInputMessageContent, type V1ResponsesInputMessageContentContentValueOneOf, type V1ResponsesInputTokensDetails, V1ResponsesModel, type V1ResponsesModelWithLiterals, type V1ResponsesOutput, type V1ResponsesOutputMessage, type V1ResponsesOutputOutputOneOf, type V1ResponsesOutputTokensDetails, type V1ResponsesReasoning, type V1ResponsesReasoningContent, type V1ResponsesReasoningOutput, type V1ResponsesReasoningSummaryContent, type V1ResponsesTextFormat, type V1ResponsesTextFormatFormatOneOf, type V1ResponsesTokenUsage, type V1ResponsesTool, type V1ResponsesToolChoice, type V1ResponsesToolToolTypeOneOf, type V1ResponsesWebSearch, type V1ResponsesWebSearchToolCall, type V1SimpleContentBlock, type V1SimpleContentBlockTypeOneOf, type V1Text, type V1TextToImageRequest, type V1TextToImageResponse, type V1Thinking, type V1ThinkingConfig, type V1TokenUsage, type V1Tool, type V1ToolChoice, V1ToolChoiceType, type V1ToolChoiceTypeWithLiterals, type V1ToolKindOneOf, type V1ToolResult, type V1ToolUse, type V1UrlCitation, type V1Usage, VideoGenModel, type VideoGenModelWithLiterals, type VideoInferenceRequest, type VideoInferenceResponse, type VideoInferenceTaskResult, VideoModel, type VideoModelWithLiterals, type Web, type WebFetchTool, type WebFetchToolResult, type WebFetchToolResultContentError, type WebFetchToolResultContentOneOf, type WebFetchToolResultContentSuccess, type WebSearchResult, type WebSearchResultList, type WebSearchResultLocationCitation, type WebSearchTool, type WebSearchToolResult, type WebSearchToolResultContentOneOf, type WebSearchToolResultError, type WebSearchUserLocation, generateContentByPromptObject, generateTextByPromptObjectStreamed };
@@ -29,6 +29,7 @@ __export(index_typings_exports, {
29
29
  ClipGuidancePreset: () => ClipGuidancePreset,
30
30
  ContentRole: () => ContentRole,
31
31
  CreatePredictionModel: () => CreatePredictionModel,
32
+ DynamicRetrievalConfigMode: () => DynamicRetrievalConfigMode,
32
33
  EditImageWithPromptRequestModel: () => EditImageWithPromptRequestModel,
33
34
  FinishReason: () => FinishReason,
34
35
  GatewayMessageDefinitionRole: () => GatewayMessageDefinitionRole,
@@ -680,11 +681,11 @@ var Outcome = /* @__PURE__ */ ((Outcome2) => {
680
681
  Outcome2["OUTCOME_DEADLINE_EXCEEDED"] = "OUTCOME_DEADLINE_EXCEEDED";
681
682
  return Outcome2;
682
683
  })(Outcome || {});
683
- var Mode = /* @__PURE__ */ ((Mode2) => {
684
- Mode2["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
685
- Mode2["MODE_DYNAMIC"] = "MODE_DYNAMIC";
686
- return Mode2;
687
- })(Mode || {});
684
+ var DynamicRetrievalConfigMode = /* @__PURE__ */ ((DynamicRetrievalConfigMode2) => {
685
+ DynamicRetrievalConfigMode2["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
686
+ DynamicRetrievalConfigMode2["MODE_DYNAMIC"] = "MODE_DYNAMIC";
687
+ return DynamicRetrievalConfigMode2;
688
+ })(DynamicRetrievalConfigMode || {});
688
689
  var HarmCategory = /* @__PURE__ */ ((HarmCategory2) => {
689
690
  HarmCategory2["UNKNOWN_CATEGORY"] = "UNKNOWN_CATEGORY";
690
691
  HarmCategory2["HARM_CATEGORY_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_SEXUALLY_EXPLICIT";
@@ -708,6 +709,14 @@ var Modality = /* @__PURE__ */ ((Modality2) => {
708
709
  Modality2["AUDIO"] = "AUDIO";
709
710
  return Modality2;
710
711
  })(Modality || {});
712
+ var Mode = /* @__PURE__ */ ((Mode2) => {
713
+ Mode2["UNKNOWN"] = "UNKNOWN";
714
+ Mode2["AUTO"] = "AUTO";
715
+ Mode2["ANY"] = "ANY";
716
+ Mode2["NONE"] = "NONE";
717
+ Mode2["VALIDATED"] = "VALIDATED";
718
+ return Mode2;
719
+ })(Mode || {});
711
720
  var Type = /* @__PURE__ */ ((Type2) => {
712
721
  Type2["UNKNOWN"] = "UNKNOWN";
713
722
  Type2["EPHEMERAL"] = "EPHEMERAL";
@@ -1273,6 +1282,7 @@ async function generateTextByPromptObjectStreamed2(options) {
1273
1282
  ClipGuidancePreset,
1274
1283
  ContentRole,
1275
1284
  CreatePredictionModel,
1285
+ DynamicRetrievalConfigMode,
1276
1286
  EditImageWithPromptRequestModel,
1277
1287
  FinishReason,
1278
1288
  GatewayMessageDefinitionRole,