diff --git a/api-report/genai-node.api.md b/api-report/genai-node.api.md index 08e42f725..3187278b2 100644 --- a/api-report/genai-node.api.md +++ b/api-report/genai-node.api.md @@ -2179,7 +2179,7 @@ export class Interactions extends BaseInteractions { // @public (undocumented) export namespace Interactions { - export { export type AllowedTools as AllowedTools, export type Annotation as Annotation, export type AudioContent as AudioContent, export type AudioResponseFormat as AudioResponseFormat, export type CodeExecutionCallArguments as CodeExecutionCallArguments, export type CodeExecutionCallStep as CodeExecutionCallStep, export type CodeExecutionResultStep as CodeExecutionResultStep, export type Content as Content, export type DeepResearchAgentConfig as DeepResearchAgentConfig, export type DocumentContent as DocumentContent, export type DynamicAgentConfig as DynamicAgentConfig, export type ErrorEvent as ErrorEvent, export type FileCitation as FileCitation, export type FileSearchCallStep as FileSearchCallStep, export type FileSearchResultStep as FileSearchResultStep, export type Function as Function, export type FunctionCallStep as FunctionCallStep, export type FunctionResultStep as FunctionResultStep, export type GenerationConfig as GenerationConfig, export type GoogleMapsCallArguments as GoogleMapsCallArguments, export type GoogleMapsCallStep as GoogleMapsCallStep, export type GoogleMapsResult as GoogleMapsResult, export type GoogleMapsResultStep as GoogleMapsResultStep, export type GoogleSearchCallArguments as GoogleSearchCallArguments, export type GoogleSearchCallStep as GoogleSearchCallStep, export type GoogleSearchResult as GoogleSearchResult, export type GoogleSearchResultStep as GoogleSearchResultStep, export type ImageConfig as ImageConfig, export type ImageContent as ImageContent, export type ImageResponseFormat as ImageResponseFormat, export type Interaction as Interaction, export type InteractionCompletedEvent as InteractionCompletedEvent, export type InteractionCreatedEvent as InteractionCreatedEvent, export type InteractionSSEEvent as InteractionSSEEvent, export type InteractionStatusUpdate as InteractionStatusUpdate, export type MCPServerToolCallStep as MCPServerToolCallStep, export type MCPServerToolResultStep as MCPServerToolResultStep, export type Model as Model, export type ModelOutputStep as ModelOutputStep, export type PlaceCitation as PlaceCitation, export type SpeechConfig as SpeechConfig, export type Step as Step, export type StepDelta as StepDelta, export type StepStart as StepStart, export type StepStop as StepStop, export type TextContent as TextContent, export type TextResponseFormat as TextResponseFormat, export type ThinkingLevel as ThinkingLevel, export type ThoughtStep as ThoughtStep, export type Tool as Tool, export type ToolChoiceConfig as ToolChoiceConfig, export type ToolChoiceType as ToolChoiceType, export type URLCitation as URLCitation, export type URLContextCallArguments as URLContextCallArguments, export type URLContextCallStep as URLContextCallStep, export type URLContextResult as URLContextResult, export type URLContextResultStep as URLContextResultStep, export type Usage as Usage, export type UserInputStep as UserInputStep, export type VideoContent as VideoContent, export type WebhookConfig as WebhookConfig, export type InteractionDeleteResponse as InteractionDeleteResponse, export type InteractionCreateParams as InteractionCreateParams, export type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, export type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, export type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, export type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, export type InteractionDeleteParams as InteractionDeleteParams, export type InteractionCancelParams as InteractionCancelParams, export type InteractionGetParams as InteractionGetParams, export type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, export type InteractionGetParamsStreaming as InteractionGetParamsStreaming, }; + export { export type AllowedTools as AllowedTools, export type Annotation as Annotation, export type AudioContent as AudioContent, export type AudioResponseFormat as AudioResponseFormat, export type CodeExecutionCallArguments as CodeExecutionCallArguments, export type CodeExecutionCallStep as CodeExecutionCallStep, export type CodeExecutionResultStep as CodeExecutionResultStep, export type Content as Content, export type DeepResearchAgentConfig as DeepResearchAgentConfig, export type DocumentContent as DocumentContent, export type DynamicAgentConfig as DynamicAgentConfig, export type ErrorEvent as ErrorEvent, export type FileCitation as FileCitation, export type FileSearchCallStep as FileSearchCallStep, export type FileSearchResultStep as FileSearchResultStep, export type Function as Function, export type FunctionCallStep as FunctionCallStep, export type FunctionResultStep as FunctionResultStep, export type GenerationConfig as GenerationConfig, export type GoogleMapsCallArguments as GoogleMapsCallArguments, export type GoogleMapsCallStep as GoogleMapsCallStep, export type GoogleMapsResult as GoogleMapsResult, export type GoogleMapsResultStep as GoogleMapsResultStep, export type GoogleSearchCallArguments as GoogleSearchCallArguments, export type GoogleSearchCallStep as GoogleSearchCallStep, export type GoogleSearchResult as GoogleSearchResult, export type GoogleSearchResultStep as GoogleSearchResultStep, export type ImageConfig as ImageConfig, export type ImageContent as ImageContent, export type ImageResponseFormat as ImageResponseFormat, export type Interaction as Interaction, export type InteractionCompletedEvent as InteractionCompletedEvent, export type InteractionCreatedEvent as InteractionCreatedEvent, export type InteractionSSEEvent as InteractionSSEEvent, export type InteractionStatusUpdate as InteractionStatusUpdate, export type MCPServerToolCallStep as MCPServerToolCallStep, export type MCPServerToolResultStep as MCPServerToolResultStep, export type Model as Model, export type ModelArmorConfig as ModelArmorConfig, export type ModelOutputStep as ModelOutputStep, export type PlaceCitation as PlaceCitation, export type SpeechConfig as SpeechConfig, export type Step as Step, export type StepDelta as StepDelta, export type StepStart as StepStart, export type StepStop as StepStop, export type TextContent as TextContent, export type TextResponseFormat as TextResponseFormat, export type ThinkingLevel as ThinkingLevel, export type ThoughtStep as ThoughtStep, export type Tool as Tool, export type ToolChoiceConfig as ToolChoiceConfig, export type ToolChoiceType as ToolChoiceType, export type URLCitation as URLCitation, export type URLContextCallArguments as URLContextCallArguments, export type URLContextCallStep as URLContextCallStep, export type URLContextResult as URLContextResult, export type URLContextResultStep as URLContextResultStep, export type Usage as Usage, export type UserInputStep as UserInputStep, export type VideoContent as VideoContent, export type WebhookConfig as WebhookConfig, export type InteractionDeleteResponse as InteractionDeleteResponse, export type InteractionCreateParams as InteractionCreateParams, export type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, export type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, export type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, export type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, export type InteractionDeleteParams as InteractionDeleteParams, export type InteractionCancelParams as InteractionCancelParams, export type InteractionGetParams as InteractionGetParams, export type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, export type InteractionGetParamsStreaming as InteractionGetParamsStreaming, }; } // @public diff --git a/api-report/genai-web.api.md b/api-report/genai-web.api.md index 08e42f725..3187278b2 100644 --- a/api-report/genai-web.api.md +++ b/api-report/genai-web.api.md @@ -2179,7 +2179,7 @@ export class Interactions extends BaseInteractions { // @public (undocumented) export namespace Interactions { - export { export type AllowedTools as AllowedTools, export type Annotation as Annotation, export type AudioContent as AudioContent, export type AudioResponseFormat as AudioResponseFormat, export type CodeExecutionCallArguments as CodeExecutionCallArguments, export type CodeExecutionCallStep as CodeExecutionCallStep, export type CodeExecutionResultStep as CodeExecutionResultStep, export type Content as Content, export type DeepResearchAgentConfig as DeepResearchAgentConfig, export type DocumentContent as DocumentContent, export type DynamicAgentConfig as DynamicAgentConfig, export type ErrorEvent as ErrorEvent, export type FileCitation as FileCitation, export type FileSearchCallStep as FileSearchCallStep, export type FileSearchResultStep as FileSearchResultStep, export type Function as Function, export type FunctionCallStep as FunctionCallStep, export type FunctionResultStep as FunctionResultStep, export type GenerationConfig as GenerationConfig, export type GoogleMapsCallArguments as GoogleMapsCallArguments, export type GoogleMapsCallStep as GoogleMapsCallStep, export type GoogleMapsResult as GoogleMapsResult, export type GoogleMapsResultStep as GoogleMapsResultStep, export type GoogleSearchCallArguments as GoogleSearchCallArguments, export type GoogleSearchCallStep as GoogleSearchCallStep, export type GoogleSearchResult as GoogleSearchResult, export type GoogleSearchResultStep as GoogleSearchResultStep, export type ImageConfig as ImageConfig, export type ImageContent as ImageContent, export type ImageResponseFormat as ImageResponseFormat, export type Interaction as Interaction, export type InteractionCompletedEvent as InteractionCompletedEvent, export type InteractionCreatedEvent as InteractionCreatedEvent, export type InteractionSSEEvent as InteractionSSEEvent, export type InteractionStatusUpdate as InteractionStatusUpdate, export type MCPServerToolCallStep as MCPServerToolCallStep, export type MCPServerToolResultStep as MCPServerToolResultStep, export type Model as Model, export type ModelOutputStep as ModelOutputStep, export type PlaceCitation as PlaceCitation, export type SpeechConfig as SpeechConfig, export type Step as Step, export type StepDelta as StepDelta, export type StepStart as StepStart, export type StepStop as StepStop, export type TextContent as TextContent, export type TextResponseFormat as TextResponseFormat, export type ThinkingLevel as ThinkingLevel, export type ThoughtStep as ThoughtStep, export type Tool as Tool, export type ToolChoiceConfig as ToolChoiceConfig, export type ToolChoiceType as ToolChoiceType, export type URLCitation as URLCitation, export type URLContextCallArguments as URLContextCallArguments, export type URLContextCallStep as URLContextCallStep, export type URLContextResult as URLContextResult, export type URLContextResultStep as URLContextResultStep, export type Usage as Usage, export type UserInputStep as UserInputStep, export type VideoContent as VideoContent, export type WebhookConfig as WebhookConfig, export type InteractionDeleteResponse as InteractionDeleteResponse, export type InteractionCreateParams as InteractionCreateParams, export type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, export type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, export type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, export type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, export type InteractionDeleteParams as InteractionDeleteParams, export type InteractionCancelParams as InteractionCancelParams, export type InteractionGetParams as InteractionGetParams, export type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, export type InteractionGetParamsStreaming as InteractionGetParamsStreaming, }; + export { export type AllowedTools as AllowedTools, export type Annotation as Annotation, export type AudioContent as AudioContent, export type AudioResponseFormat as AudioResponseFormat, export type CodeExecutionCallArguments as CodeExecutionCallArguments, export type CodeExecutionCallStep as CodeExecutionCallStep, export type CodeExecutionResultStep as CodeExecutionResultStep, export type Content as Content, export type DeepResearchAgentConfig as DeepResearchAgentConfig, export type DocumentContent as DocumentContent, export type DynamicAgentConfig as DynamicAgentConfig, export type ErrorEvent as ErrorEvent, export type FileCitation as FileCitation, export type FileSearchCallStep as FileSearchCallStep, export type FileSearchResultStep as FileSearchResultStep, export type Function as Function, export type FunctionCallStep as FunctionCallStep, export type FunctionResultStep as FunctionResultStep, export type GenerationConfig as GenerationConfig, export type GoogleMapsCallArguments as GoogleMapsCallArguments, export type GoogleMapsCallStep as GoogleMapsCallStep, export type GoogleMapsResult as GoogleMapsResult, export type GoogleMapsResultStep as GoogleMapsResultStep, export type GoogleSearchCallArguments as GoogleSearchCallArguments, export type GoogleSearchCallStep as GoogleSearchCallStep, export type GoogleSearchResult as GoogleSearchResult, export type GoogleSearchResultStep as GoogleSearchResultStep, export type ImageConfig as ImageConfig, export type ImageContent as ImageContent, export type ImageResponseFormat as ImageResponseFormat, export type Interaction as Interaction, export type InteractionCompletedEvent as InteractionCompletedEvent, export type InteractionCreatedEvent as InteractionCreatedEvent, export type InteractionSSEEvent as InteractionSSEEvent, export type InteractionStatusUpdate as InteractionStatusUpdate, export type MCPServerToolCallStep as MCPServerToolCallStep, export type MCPServerToolResultStep as MCPServerToolResultStep, export type Model as Model, export type ModelArmorConfig as ModelArmorConfig, export type ModelOutputStep as ModelOutputStep, export type PlaceCitation as PlaceCitation, export type SpeechConfig as SpeechConfig, export type Step as Step, export type StepDelta as StepDelta, export type StepStart as StepStart, export type StepStop as StepStop, export type TextContent as TextContent, export type TextResponseFormat as TextResponseFormat, export type ThinkingLevel as ThinkingLevel, export type ThoughtStep as ThoughtStep, export type Tool as Tool, export type ToolChoiceConfig as ToolChoiceConfig, export type ToolChoiceType as ToolChoiceType, export type URLCitation as URLCitation, export type URLContextCallArguments as URLContextCallArguments, export type URLContextCallStep as URLContextCallStep, export type URLContextResult as URLContextResult, export type URLContextResultStep as URLContextResultStep, export type Usage as Usage, export type UserInputStep as UserInputStep, export type VideoContent as VideoContent, export type WebhookConfig as WebhookConfig, export type InteractionDeleteResponse as InteractionDeleteResponse, export type InteractionCreateParams as InteractionCreateParams, export type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, export type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, export type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, export type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, export type InteractionDeleteParams as InteractionDeleteParams, export type InteractionCancelParams as InteractionCancelParams, export type InteractionGetParams as InteractionGetParams, export type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, export type InteractionGetParamsStreaming as InteractionGetParamsStreaming, }; } // @public diff --git a/api-report/genai.api.md b/api-report/genai.api.md index 08e42f725..3187278b2 100644 --- a/api-report/genai.api.md +++ b/api-report/genai.api.md @@ -2179,7 +2179,7 @@ export class Interactions extends BaseInteractions { // @public (undocumented) export namespace Interactions { - export { export type AllowedTools as AllowedTools, export type Annotation as Annotation, export type AudioContent as AudioContent, export type AudioResponseFormat as AudioResponseFormat, export type CodeExecutionCallArguments as CodeExecutionCallArguments, export type CodeExecutionCallStep as CodeExecutionCallStep, export type CodeExecutionResultStep as CodeExecutionResultStep, export type Content as Content, export type DeepResearchAgentConfig as DeepResearchAgentConfig, export type DocumentContent as DocumentContent, export type DynamicAgentConfig as DynamicAgentConfig, export type ErrorEvent as ErrorEvent, export type FileCitation as FileCitation, export type FileSearchCallStep as FileSearchCallStep, export type FileSearchResultStep as FileSearchResultStep, export type Function as Function, export type FunctionCallStep as FunctionCallStep, export type FunctionResultStep as FunctionResultStep, export type GenerationConfig as GenerationConfig, export type GoogleMapsCallArguments as GoogleMapsCallArguments, export type GoogleMapsCallStep as GoogleMapsCallStep, export type GoogleMapsResult as GoogleMapsResult, export type GoogleMapsResultStep as GoogleMapsResultStep, export type GoogleSearchCallArguments as GoogleSearchCallArguments, export type GoogleSearchCallStep as GoogleSearchCallStep, export type GoogleSearchResult as GoogleSearchResult, export type GoogleSearchResultStep as GoogleSearchResultStep, export type ImageConfig as ImageConfig, export type ImageContent as ImageContent, export type ImageResponseFormat as ImageResponseFormat, export type Interaction as Interaction, export type InteractionCompletedEvent as InteractionCompletedEvent, export type InteractionCreatedEvent as InteractionCreatedEvent, export type InteractionSSEEvent as InteractionSSEEvent, export type InteractionStatusUpdate as InteractionStatusUpdate, export type MCPServerToolCallStep as MCPServerToolCallStep, export type MCPServerToolResultStep as MCPServerToolResultStep, export type Model as Model, export type ModelOutputStep as ModelOutputStep, export type PlaceCitation as PlaceCitation, export type SpeechConfig as SpeechConfig, export type Step as Step, export type StepDelta as StepDelta, export type StepStart as StepStart, export type StepStop as StepStop, export type TextContent as TextContent, export type TextResponseFormat as TextResponseFormat, export type ThinkingLevel as ThinkingLevel, export type ThoughtStep as ThoughtStep, export type Tool as Tool, export type ToolChoiceConfig as ToolChoiceConfig, export type ToolChoiceType as ToolChoiceType, export type URLCitation as URLCitation, export type URLContextCallArguments as URLContextCallArguments, export type URLContextCallStep as URLContextCallStep, export type URLContextResult as URLContextResult, export type URLContextResultStep as URLContextResultStep, export type Usage as Usage, export type UserInputStep as UserInputStep, export type VideoContent as VideoContent, export type WebhookConfig as WebhookConfig, export type InteractionDeleteResponse as InteractionDeleteResponse, export type InteractionCreateParams as InteractionCreateParams, export type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, export type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, export type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, export type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, export type InteractionDeleteParams as InteractionDeleteParams, export type InteractionCancelParams as InteractionCancelParams, export type InteractionGetParams as InteractionGetParams, export type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, export type InteractionGetParamsStreaming as InteractionGetParamsStreaming, }; + export { export type AllowedTools as AllowedTools, export type Annotation as Annotation, export type AudioContent as AudioContent, export type AudioResponseFormat as AudioResponseFormat, export type CodeExecutionCallArguments as CodeExecutionCallArguments, export type CodeExecutionCallStep as CodeExecutionCallStep, export type CodeExecutionResultStep as CodeExecutionResultStep, export type Content as Content, export type DeepResearchAgentConfig as DeepResearchAgentConfig, export type DocumentContent as DocumentContent, export type DynamicAgentConfig as DynamicAgentConfig, export type ErrorEvent as ErrorEvent, export type FileCitation as FileCitation, export type FileSearchCallStep as FileSearchCallStep, export type FileSearchResultStep as FileSearchResultStep, export type Function as Function, export type FunctionCallStep as FunctionCallStep, export type FunctionResultStep as FunctionResultStep, export type GenerationConfig as GenerationConfig, export type GoogleMapsCallArguments as GoogleMapsCallArguments, export type GoogleMapsCallStep as GoogleMapsCallStep, export type GoogleMapsResult as GoogleMapsResult, export type GoogleMapsResultStep as GoogleMapsResultStep, export type GoogleSearchCallArguments as GoogleSearchCallArguments, export type GoogleSearchCallStep as GoogleSearchCallStep, export type GoogleSearchResult as GoogleSearchResult, export type GoogleSearchResultStep as GoogleSearchResultStep, export type ImageConfig as ImageConfig, export type ImageContent as ImageContent, export type ImageResponseFormat as ImageResponseFormat, export type Interaction as Interaction, export type InteractionCompletedEvent as InteractionCompletedEvent, export type InteractionCreatedEvent as InteractionCreatedEvent, export type InteractionSSEEvent as InteractionSSEEvent, export type InteractionStatusUpdate as InteractionStatusUpdate, export type MCPServerToolCallStep as MCPServerToolCallStep, export type MCPServerToolResultStep as MCPServerToolResultStep, export type Model as Model, export type ModelArmorConfig as ModelArmorConfig, export type ModelOutputStep as ModelOutputStep, export type PlaceCitation as PlaceCitation, export type SpeechConfig as SpeechConfig, export type Step as Step, export type StepDelta as StepDelta, export type StepStart as StepStart, export type StepStop as StepStop, export type TextContent as TextContent, export type TextResponseFormat as TextResponseFormat, export type ThinkingLevel as ThinkingLevel, export type ThoughtStep as ThoughtStep, export type Tool as Tool, export type ToolChoiceConfig as ToolChoiceConfig, export type ToolChoiceType as ToolChoiceType, export type URLCitation as URLCitation, export type URLContextCallArguments as URLContextCallArguments, export type URLContextCallStep as URLContextCallStep, export type URLContextResult as URLContextResult, export type URLContextResultStep as URLContextResultStep, export type Usage as Usage, export type UserInputStep as UserInputStep, export type VideoContent as VideoContent, export type WebhookConfig as WebhookConfig, export type InteractionDeleteResponse as InteractionDeleteResponse, export type InteractionCreateParams as InteractionCreateParams, export type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, export type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, export type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, export type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, export type InteractionDeleteParams as InteractionDeleteParams, export type InteractionCancelParams as InteractionCancelParams, export type InteractionGetParams as InteractionGetParams, export type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, export type InteractionGetParamsStreaming as InteractionGetParamsStreaming, }; } // @public diff --git a/src/interactions/client.ts b/src/interactions/client.ts index 4c249cfbf..837f9b1ed 100644 --- a/src/interactions/client.ts +++ b/src/interactions/client.ts @@ -73,6 +73,7 @@ import { MCPServerToolCallStep, MCPServerToolResultStep, Model, + ModelArmorConfig, ModelOutputStep, PlaceCitation, SpeechConfig, @@ -914,6 +915,7 @@ export declare namespace GeminiNextGenAPIClient { type MCPServerToolCallStep as MCPServerToolCallStep, type MCPServerToolResultStep as MCPServerToolResultStep, type Model as Model, + type ModelArmorConfig as ModelArmorConfig, type ModelOutputStep as ModelOutputStep, type PlaceCitation as PlaceCitation, type SpeechConfig as SpeechConfig, diff --git a/src/interactions/resources/index.ts b/src/interactions/resources/index.ts index 95ae8053d..2840c40b8 100644 --- a/src/interactions/resources/index.ts +++ b/src/interactions/resources/index.ts @@ -47,6 +47,7 @@ export { type MCPServerToolCallStep, type MCPServerToolResultStep, type Model, + type ModelArmorConfig, type ModelOutputStep, type PlaceCitation, type SpeechConfig, diff --git a/src/interactions/resources/interactions.ts b/src/interactions/resources/interactions.ts index c0139b363..558961b07 100644 --- a/src/interactions/resources/interactions.ts +++ b/src/interactions/resources/interactions.ts @@ -1078,6 +1078,11 @@ export interface Interaction { */ model?: Model; + /** + * Settings for prompt and response sanitization using the Model Armor service. + */ + model_armor_config?: ModelArmorConfig; + /** * The ID of the previous interaction, if any. */ @@ -1278,6 +1283,42 @@ export type Model = | 'lyria-3-pro-preview' | (string & {}); +/** + * Configuration for Model Armor. + * + * Model Armor is a Google Cloud service that provides safety and security + * filtering for prompts and responses. It helps protect your AI applications from + * risks such as harmful content, sensitive data leakage, and prompt injection + * attacks. + */ +export interface ModelArmorConfig { + /** + * The resource name of the Model Armor template to use for prompt screening. + * + * A Model Armor template is a set of customized filters and thresholds that define + * how Model Armor screens content. If specified, Model Armor will use this + * template to check the user's prompt for safety and security risks before it is + * sent to the model. + * + * The name must be in the format + * `projects/{project}/locations/{location}/templates/{template}`. + */ + prompt_template_name?: string; + + /** + * The resource name of the Model Armor template to use for response screening. + * + * A Model Armor template is a set of customized filters and thresholds that define + * how Model Armor screens content. If specified, Model Armor will use this + * template to check the model's response for safety and security risks before it + * is returned to the user. + * + * The name must be in the format + * `projects/{project}/locations/{location}/templates/{template}`. + */ + response_template_name?: string; +} + /** * Output generated by the model. */ @@ -2368,6 +2409,12 @@ export interface BaseCreateModelInteractionParams { */ generation_config?: GenerationConfig; + /** + * Body param: Settings for prompt and response sanitization using the Model Armor + * service. + */ + model_armor_config?: ModelArmorConfig; + /** * Body param: The ID of the previous interaction, if any. */ @@ -2466,6 +2513,12 @@ export interface BaseCreateAgentInteractionParams { */ background?: boolean; + /** + * Body param: Settings for prompt and response sanitization using the Model Armor + * service. + */ + model_armor_config?: ModelArmorConfig; + /** * Body param: The ID of the previous interaction, if any. */ @@ -2656,6 +2709,7 @@ export declare namespace Interactions { type MCPServerToolCallStep as MCPServerToolCallStep, type MCPServerToolResultStep as MCPServerToolResultStep, type Model as Model, + type ModelArmorConfig as ModelArmorConfig, type ModelOutputStep as ModelOutputStep, type PlaceCitation as PlaceCitation, type SpeechConfig as SpeechConfig,