diff --git a/internal/cli/custom/custom_test.go b/internal/cli/custom/custom_test.go index c3c40c52..c120e7a9 100644 --- a/internal/cli/custom/custom_test.go +++ b/internal/cli/custom/custom_test.go @@ -2956,16 +2956,15 @@ func TestTTSVoicePrompt(t *testing.T) { if lastVoiceBody["store"] != true { t.Errorf("store = %v, want true", lastVoiceBody["store"]) } - voiceObj, _ := lastVoiceBody["voice"].(map[string]any) - if _, hasModel := voiceObj["model"]; hasModel { - t.Errorf("voice.model = %v, want omitted so server selects default voice design model", voiceObj["model"]) + if _, hasModel := lastVoiceBody["model"]; hasModel { + t.Errorf("model = %v, want omitted so server selects default voice design model", lastVoiceBody["model"]) } - promptedObj, _ := voiceObj["prompted"].(map[string]any) + promptedObj, _ := lastVoiceBody["prompted"].(map[string]any) if got := promptedObj["input"]; got != "A warm British voice" { - t.Errorf("voice.prompted.input = %q, want trimmed %q", got, "A warm British voice") + t.Errorf("prompted.input = %q, want trimmed %q", got, "A warm British voice") } - if got := voiceObj["language_code"]; got != "en-GB" { - t.Errorf("voice.language_code = %q, want en-GB", got) + if got := lastVoiceBody["language_code"]; got != "en-GB" { + t.Errorf("language_code = %q, want en-GB", got) } genCfg, _ := lastInteractionBody["generation_config"].(map[string]any) speechArr, _ := genCfg["speech_config"].([]any) diff --git a/internal/cli/custom/register.go b/internal/cli/custom/register.go index 3c290c14..a8aa553e 100644 --- a/internal/cli/custom/register.go +++ b/internal/cli/custom/register.go @@ -116,7 +116,7 @@ func register(root *cobra.Command) error { if voicesCreate == nil { return fmt.Errorf("voices create: command is not registered") } - voicesCreate.Example = " gemini-api voices create --store=true --voice '{\"prompted\":{\"input\":\"A warm, calm narrator with a British accent\"},\"type\":\"prompted\"}'" + voicesCreate.Example = " gemini-api voices create --store=true --type prompted --prompted '{\"input\":\"A warm, calm narrator with a British accent\"}'" if err := normalizeIdentifier(findChild(voices, "get"), "id", normalizeVoicePositional); err != nil { return fmt.Errorf("voices get: %w", err) } diff --git a/internal/cli/custom/tts.go b/internal/cli/custom/tts.go index 60d56dde..c6bc941c 100644 --- a/internal/cli/custom/tts.go +++ b/internal/cli/custom/tts.go @@ -611,20 +611,18 @@ func extractAudio(it *interactions.Interaction) ([]byte, string, int, int, error // returns its voice_ so `gemini-api tts --voice-prompt` can synthesize // immediately with the newly designed voice. func designVoiceForTTS(cmd *cobra.Command, s *sdk.GeminiAPI, opts []operations.Option, prompt, language string) (string, error) { - voiceInput := voices.VoiceInput{ - Type: voices.VoiceTypePrompted, + body := voices.VoiceCreateParams{ + Store: boolPtr(true), + Type: voices.VoiceTypePrompted, Prompted: &voices.PromptedVoice{ Input: prompt, }, } if language != "" { - voiceInput.LanguageCode = stringPtr(language) + body.LanguageCode = stringPtr(language) } req := operations.CreateVoiceRequest{ - Body: voices.CreateVoiceRequest{ - Store: boolPtr(true), - Voice: voiceInput, - }, + Body: body, } if !isDryRun(cmd) { progress(cmd, "Designing custom voice...") diff --git a/internal/cli/voices/create.go b/internal/cli/voices/create.go index 9a073499..e639b3ab 100644 --- a/internal/cli/voices/create.go +++ b/internal/cli/voices/create.go @@ -28,8 +28,20 @@ import ( ) var createCmdMeta = []flagutil.FlagMeta{ + {FlagName: "accent", Shorthand: "a", FieldPath: "Body.Accent", Kind: flagutil.FlagKindString, Optional: true, Description: "Regional accent descriptor (e.g. American, British)"}, + {FlagName: "context", Shorthand: "c", FieldPath: "Body.Context", Kind: flagutil.FlagKindString, Optional: true, Description: "Intended usage context (e.g. Conversational, Audiobook, News)"}, + {FlagName: "description", FieldPath: "Body.Description", Kind: flagutil.FlagKindString, Optional: true, Description: "Descriptive summary of vocal timbre, personality, and tone"}, + {FlagName: "display-name", FieldPath: "Body.DisplayName", Kind: flagutil.FlagKindString, Optional: true, Description: "User-provided display name for a stored voice (--store=true)"}, + {FlagName: "gender", Shorthand: "g", FieldPath: "Body.Gender", Kind: flagutil.FlagKindString, Optional: true, Description: "Perceived gender presentation (e.g. female, male, neutral)"}, + {FlagName: "language-code", Shorthand: "l", FieldPath: "Body.LanguageCode", Kind: flagutil.FlagKindString, Optional: true, Description: "Primary BCP-47 language tag (e.g. en-US, fr-FR)"}, + {FlagName: "model", Shorthand: "m", FieldPath: "Body.Model", Kind: flagutil.FlagKindString, Optional: true, Description: "Voice creation model (defaults to the service default if omitted)"}, + {FlagName: "persona", FieldPath: "Body.Persona", Kind: flagutil.FlagKindString, Optional: true, Description: "Intended persona or archetype (e.g. Warm, Friendly, Narrator)"}, + {FlagName: "pitch", FieldPath: "Body.Pitch", Kind: flagutil.FlagKindEnum, Optional: true, EnumValues: []string{"low", "medium", "high"}, Description: "options: low, medium, high"}, + {FlagName: "prompted", FieldPath: "Body.Prompted", Kind: flagutil.FlagKindJSON, Optional: true, Annotations: `json:"prompted,omitempty"`, Description: "Parameters for prompted voice generation.\nRequired when creating a voice with 'type' '\"prompted\"'. Returned when\ncreating, getting, or listing prompted voices."}, + {FlagName: "region-code", FieldPath: "Body.RegionCode", Kind: flagutil.FlagKindString, Optional: true, Description: "ISO 3166-1 alpha-2 or UN M.49 region code (e.g. US, GB, 001)"}, + {FlagName: "replicated", FieldPath: "Body.Replicated", Kind: flagutil.FlagKindJSON, Optional: true, Annotations: `json:"replicated,omitempty"`, Description: "Input only. Parameters for replicated voice generation.\nRequired on input when 'type' is '\"replicated\"'. Not returned in\nresponses."}, {FlagName: "store", Shorthand: "s", FieldPath: "Body.Store", Kind: flagutil.FlagKindBool, Optional: true, Description: "Persist the voice on the server and return a reusable voice_ (required for prompted voices; expires after 1y of inactivity and counts toward project quota; false returns a client-side voicekey_)"}, - {FlagName: "voice", Shorthand: "v", FieldPath: "Body.Voice", Kind: flagutil.FlagKindJSON, Required: true, Annotations: `json:"voice"`, Description: "A custom (\"prompted\" or \"replicated\") or prebuilt voice resource. [required]"}, + {FlagName: "type", Shorthand: "t", FieldPath: "Body.Type", Kind: flagutil.FlagKindEnum, Required: true, EnumValues: []string{"replicated", "prompted", "prebuilt"}, Description: "options: replicated, prompted, prebuilt [required]"}, } // initCreateCmd initializes the create command. @@ -38,7 +50,7 @@ func initCreateCmd(parent *cobra.Command) error { Use: "create", Short: "Create a custom voice from a prompt or reference audio", Long: "Creates a custom voice from a natural-language prompt (type \"prompted\", which requires --store) or from reference and consent audio recordings (type \"replicated\"). Stored voices expire after 1 year of inactivity and count against a per-project active-voice quota.", - Example: " gemini-api voices create --voice '{\"prompted\":{\"input\":\"A warm, calm narrator with a British accent\"},\"type\":\"prompted\"}'", + Example: " gemini-api voices create --type prompted", Args: cobra.NoArgs, RunE: runCreateCmd, Annotations: map[string]string{ diff --git a/internal/sdk/models/operations/createvoice.go b/internal/sdk/models/operations/createvoice.go index 9641d250..f9e35388 100644 --- a/internal/sdk/models/operations/createvoice.go +++ b/internal/sdk/models/operations/createvoice.go @@ -60,7 +60,7 @@ type CreateVoiceRequest struct { // Which version of the API to use. Defaults to v1beta (the only version covering the full interactions surface). APIVersion *string `default:"v1beta" pathParam:"style=simple,explode=false,name=api_version"` // The request body. - Body voices.CreateVoiceRequest `request:"mediaType=application/json"` + Body voices.VoiceCreateParams `request:"mediaType=application/json"` } func (c CreateVoiceRequest) MarshalJSON() ([]byte, error) { @@ -88,9 +88,9 @@ func (c *CreateVoiceRequest) GetAPIVersion() *string { return c.APIVersion } -func (c *CreateVoiceRequest) GetBody() voices.CreateVoiceRequest { +func (c *CreateVoiceRequest) GetBody() voices.VoiceCreateParams { if c == nil { - return voices.CreateVoiceRequest{} + return voices.VoiceCreateParams{} } return c.Body } @@ -98,7 +98,7 @@ func (c *CreateVoiceRequest) GetBody() voices.CreateVoiceRequest { type CreateVoiceResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // Successful operation - Voice *voices.VoiceOutput + Voice *voices.Voice } func (c CreateVoiceResponse) MarshalJSON() ([]byte, error) { @@ -119,7 +119,7 @@ func (c *CreateVoiceResponse) GetHTTPMeta() components.HTTPMetadata { return c.HTTPMeta } -func (c *CreateVoiceResponse) GetVoice() *voices.VoiceOutput { +func (c *CreateVoiceResponse) GetVoice() *voices.Voice { if c == nil { return nil } diff --git a/internal/sdk/models/operations/getvoice.go b/internal/sdk/models/operations/getvoice.go index da6308c3..feb438c1 100644 --- a/internal/sdk/models/operations/getvoice.go +++ b/internal/sdk/models/operations/getvoice.go @@ -98,7 +98,7 @@ func (g *GetVoiceRequest) GetID() string { type GetVoiceResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // Successful operation - Voice *voices.VoiceOutput + Voice *voices.Voice } func (g GetVoiceResponse) MarshalJSON() ([]byte, error) { @@ -119,7 +119,7 @@ func (g *GetVoiceResponse) GetHTTPMeta() components.HTTPMetadata { return g.HTTPMeta } -func (g *GetVoiceResponse) GetVoice() *voices.VoiceOutput { +func (g *GetVoiceResponse) GetVoice() *voices.Voice { if g == nil { return nil } diff --git a/internal/sdk/models/voices/createvoicerequest.go b/internal/sdk/models/voices/createvoicerequest.go deleted file mode 100644 index cb5c901d..00000000 --- a/internal/sdk/models/voices/createvoicerequest.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2026 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package voices - -// CreateVoiceRequest - Request for creating a voice. -type CreateVoiceRequest struct { - // Persist the voice on the server and return a reusable voice_ (required for prompted voices; expires after 1y of inactivity and counts toward project quota; false returns a client-side voicekey_) - Store *bool `json:"store,omitzero"` - // A custom ("prompted" or "replicated") or prebuilt voice resource. - Voice VoiceInput `json:"voice"` -} - -func (c *CreateVoiceRequest) GetStore() *bool { - if c == nil { - return nil - } - return c.Store -} - -func (c *CreateVoiceRequest) GetVoice() VoiceInput { - if c == nil { - return VoiceInput{} - } - return c.Voice -} diff --git a/internal/sdk/models/voices/listvoicesresponse.go b/internal/sdk/models/voices/listvoicesresponse.go index b04d7a22..2241438f 100644 --- a/internal/sdk/models/voices/listvoicesresponse.go +++ b/internal/sdk/models/voices/listvoicesresponse.go @@ -26,7 +26,7 @@ type ListVoicesResponse struct { // If empty, there are no subsequent pages. NextPageToken *string `json:"next_page_token,omitzero"` // The voices from the specified collection. - Voices []VoiceOutput `json:"voices,omitzero"` + Voices []Voice `json:"voices,omitzero"` } func (l ListVoicesResponse) MarshalJSON() ([]byte, error) { @@ -47,7 +47,7 @@ func (l *ListVoicesResponse) GetNextPageToken() *string { return l.NextPageToken } -func (l *ListVoicesResponse) GetVoices() []VoiceOutput { +func (l *ListVoicesResponse) GetVoices() []Voice { if l == nil { return nil } diff --git a/internal/sdk/models/voices/voiceoutput.go b/internal/sdk/models/voices/voice.go similarity index 83% rename from internal/sdk/models/voices/voiceoutput.go rename to internal/sdk/models/voices/voice.go index c5e40cec..d3a440ce 100644 --- a/internal/sdk/models/voices/voiceoutput.go +++ b/internal/sdk/models/voices/voice.go @@ -23,8 +23,8 @@ import ( "github.com/google-gemini/gemini-api-cli/internal/sdk/sdkinternal/utils" ) -// VoiceOutput - A custom ("prompted" or "replicated") or prebuilt voice resource. -type VoiceOutput struct { +// Voice - A custom ("prompted" or "replicated") or prebuilt voice resource. +type Voice struct { // Optional. Regional accent descriptor (e.g. "American", "British"). Accent *string `json:"accent,omitzero"` // Optional. Optimal usage context or domain (e.g. "Conversational", @@ -88,130 +88,130 @@ type VoiceOutput struct { Usage *interactions.Usage `json:"usage,omitzero"` } -func (v VoiceOutput) MarshalJSON() ([]byte, error) { +func (v Voice) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(v, "", false) } -func (v *VoiceOutput) UnmarshalJSON(data []byte) error { +func (v *Voice) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &v, "", false, nil); err != nil { return err } return nil } -func (v *VoiceOutput) GetAccent() *string { +func (v *Voice) GetAccent() *string { if v == nil { return nil } return v.Accent } -func (v *VoiceOutput) GetContext() *string { +func (v *Voice) GetContext() *string { if v == nil { return nil } return v.Context } -func (v *VoiceOutput) GetDescription() *string { +func (v *Voice) GetDescription() *string { if v == nil { return nil } return v.Description } -func (v *VoiceOutput) GetDisplayName() *string { +func (v *Voice) GetDisplayName() *string { if v == nil { return nil } return v.DisplayName } -func (v *VoiceOutput) GetExpireTime() *time.Time { +func (v *Voice) GetExpireTime() *time.Time { if v == nil { return nil } return v.ExpireTime } -func (v *VoiceOutput) GetGender() *string { +func (v *Voice) GetGender() *string { if v == nil { return nil } return v.Gender } -func (v *VoiceOutput) GetID() *string { +func (v *Voice) GetID() *string { if v == nil { return nil } return v.ID } -func (v *VoiceOutput) GetKey() *string { +func (v *Voice) GetKey() *string { if v == nil { return nil } return v.Key } -func (v *VoiceOutput) GetLanguageCode() *string { +func (v *Voice) GetLanguageCode() *string { if v == nil { return nil } return v.LanguageCode } -func (v *VoiceOutput) GetModel() *string { +func (v *Voice) GetModel() *string { if v == nil { return nil } return v.Model } -func (v *VoiceOutput) GetPersona() *string { +func (v *Voice) GetPersona() *string { if v == nil { return nil } return v.Persona } -func (v *VoiceOutput) GetPitch() *Pitch { +func (v *Voice) GetPitch() *Pitch { if v == nil { return nil } return v.Pitch } -func (v *VoiceOutput) GetPrompted() *PromptedVoice { +func (v *Voice) GetPrompted() *PromptedVoice { if v == nil { return nil } return v.Prompted } -func (v *VoiceOutput) GetRegionCode() *string { +func (v *Voice) GetRegionCode() *string { if v == nil { return nil } return v.RegionCode } -func (v *VoiceOutput) GetSampleAudio() *AudioData { +func (v *Voice) GetSampleAudio() *AudioData { if v == nil { return nil } return v.SampleAudio } -func (v *VoiceOutput) GetType() VoiceType { +func (v *Voice) GetType() VoiceType { if v == nil { return VoiceType("") } return v.Type } -func (v *VoiceOutput) GetUsage() *interactions.Usage { +func (v *Voice) GetUsage() *interactions.Usage { if v == nil { return nil } diff --git a/internal/sdk/models/voices/voiceinput.go b/internal/sdk/models/voices/voicecreateparams.go similarity index 54% rename from internal/sdk/models/voices/voiceinput.go rename to internal/sdk/models/voices/voicecreateparams.go index 2bb57c3b..f0da1a8d 100644 --- a/internal/sdk/models/voices/voiceinput.go +++ b/internal/sdk/models/voices/voicecreateparams.go @@ -20,153 +20,143 @@ import ( "github.com/google-gemini/gemini-api-cli/internal/sdk/sdkinternal/utils" ) -// VoiceInput - A custom ("prompted" or "replicated") or prebuilt voice resource. -type VoiceInput struct { - // Optional. Regional accent descriptor (e.g. "American", "British"). +// VoiceCreateParams - Parameters for creating a custom voice. +type VoiceCreateParams struct { + // Regional accent descriptor (e.g. American, British) Accent *string `json:"accent,omitzero"` - // Optional. Optimal usage context or domain (e.g. "Conversational", - // "Audiobook", "News"). + // Intended usage context (e.g. Conversational, Audiobook, News) Context *string `json:"context,omitzero"` - // Optional. Descriptive summary of vocal timbre, personality, and tone. + // Descriptive summary of vocal timbre, personality, and tone Description *string `json:"description,omitzero"` - // Optional. User-provided display name for a stored voice (`store = true`), - // or the catalog name for a prebuilt voice. + // User-provided display name for a stored voice (--store=true) DisplayName *string `json:"display_name,omitzero"` - // Optional. Perceived voice gender presentation (e.g. "female", "male", - // "neutral"). + // Perceived gender presentation (e.g. female, male, neutral) Gender *string `json:"gender,omitzero"` - // Optional. Primary BCP-47 language tag (e.g. "en-US", "fr-FR"). + // Primary BCP-47 language tag (e.g. en-US, fr-FR) LanguageCode *string `json:"language_code,omitzero"` - // Optional. The model used to design or replicate the voice. - // If omitted when creating a voice, defaults to the latest supported voice - // design model. Returned when creating, getting, or listing custom voices - // (`"prompted"` and `"replicated"`); unset for `"prebuilt"` - // voices. Created voices can be synthesized across any supported TTS - // synthesis model. + // Voice creation model (defaults to the service default if omitted) Model *string `json:"model,omitzero"` - // Optional. Intended persona or character archetype (e.g. "Warm, Friendly", - // "Narrator"). + // Intended persona or archetype (e.g. Warm, Friendly, Narrator) Persona *string `json:"persona,omitzero"` Pitch *Pitch `json:"pitch,omitzero"` // Parameters for prompted voice generation. // Required when creating a voice with `type` `"prompted"`. Returned when // creating, getting, or listing prompted voices. Prompted *PromptedVoice `json:"prompted,omitzero"` - // Optional. ISO 3166-1 alpha-2 or UN M.49 geographic region code (e.g. "US", - // "GB", "001"). + // ISO 3166-1 alpha-2 or UN M.49 region code (e.g. US, GB, 001) RegionCode *string `json:"region_code,omitzero"` // Input only. Parameters for replicated voice generation. // Required on input when `type` is `"replicated"`. Not returned in // responses. Replicated *ReplicatedVoice `json:"replicated,omitzero"` - // Audio payload used for voice creation. - SampleAudio *AudioData `json:"sample_audio,omitzero"` - Type VoiceType `json:"type"` + // Persist the voice on the server and return a reusable voice_ (required for prompted voices; expires after 1y of inactivity and counts toward project quota; false returns a client-side voicekey_) + Store *bool `json:"store,omitzero"` + Type VoiceType `json:"type"` } -func (v VoiceInput) MarshalJSON() ([]byte, error) { +func (v VoiceCreateParams) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(v, "", false) } -func (v *VoiceInput) UnmarshalJSON(data []byte) error { +func (v *VoiceCreateParams) UnmarshalJSON(data []byte) error { if err := utils.UnmarshalJSON(data, &v, "", false, nil); err != nil { return err } return nil } -func (v *VoiceInput) GetAccent() *string { +func (v *VoiceCreateParams) GetAccent() *string { if v == nil { return nil } return v.Accent } -func (v *VoiceInput) GetContext() *string { +func (v *VoiceCreateParams) GetContext() *string { if v == nil { return nil } return v.Context } -func (v *VoiceInput) GetDescription() *string { +func (v *VoiceCreateParams) GetDescription() *string { if v == nil { return nil } return v.Description } -func (v *VoiceInput) GetDisplayName() *string { +func (v *VoiceCreateParams) GetDisplayName() *string { if v == nil { return nil } return v.DisplayName } -func (v *VoiceInput) GetGender() *string { +func (v *VoiceCreateParams) GetGender() *string { if v == nil { return nil } return v.Gender } -func (v *VoiceInput) GetLanguageCode() *string { +func (v *VoiceCreateParams) GetLanguageCode() *string { if v == nil { return nil } return v.LanguageCode } -func (v *VoiceInput) GetModel() *string { +func (v *VoiceCreateParams) GetModel() *string { if v == nil { return nil } return v.Model } -func (v *VoiceInput) GetPersona() *string { +func (v *VoiceCreateParams) GetPersona() *string { if v == nil { return nil } return v.Persona } -func (v *VoiceInput) GetPitch() *Pitch { +func (v *VoiceCreateParams) GetPitch() *Pitch { if v == nil { return nil } return v.Pitch } -func (v *VoiceInput) GetPrompted() *PromptedVoice { +func (v *VoiceCreateParams) GetPrompted() *PromptedVoice { if v == nil { return nil } return v.Prompted } -func (v *VoiceInput) GetRegionCode() *string { +func (v *VoiceCreateParams) GetRegionCode() *string { if v == nil { return nil } return v.RegionCode } -func (v *VoiceInput) GetReplicated() *ReplicatedVoice { +func (v *VoiceCreateParams) GetReplicated() *ReplicatedVoice { if v == nil { return nil } return v.Replicated } -func (v *VoiceInput) GetSampleAudio() *AudioData { +func (v *VoiceCreateParams) GetStore() *bool { if v == nil { return nil } - return v.SampleAudio + return v.Store } -func (v *VoiceInput) GetType() VoiceType { +func (v *VoiceCreateParams) GetType() VoiceType { if v == nil { return VoiceType("") } diff --git a/internal/sdk/voices.go b/internal/sdk/voices.go index bc830c21..c64d9a6c 100644 --- a/internal/sdk/voices.go +++ b/internal/sdk/voices.go @@ -475,7 +475,7 @@ func (s *Voices) Create(ctx context.Context, request operations.CreateVoiceReque return nil, err } - var out voices.VoiceOutput + var out voices.Voice if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } @@ -861,7 +861,7 @@ func (s *Voices) Get(ctx context.Context, request operations.GetVoiceRequest, op return nil, err } - var out voices.VoiceOutput + var out voices.Voice if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } diff --git a/internal/usage/bodyschemas.go b/internal/usage/bodyschemas.go index 6825b805..5bc0deaf 100644 --- a/internal/usage/bodyschemas.go +++ b/internal/usage/bodyschemas.go @@ -27,7 +27,7 @@ var bodySchemas = map[string]string{ "CreateEnvironment": "{\"$defs\":{\"CreateEnvironmentRequest\":{\"description\":\"Request for creating an environment.\",\"properties\":{\"custom_config\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Optional. Arbitrary customer-defined JSON configuration passed through\\nto the self-hosted environment poller. Only supported when `mode` is\\n`SELF_HOSTED`.\",\"type\":\"object\"},\"env\":{\"additionalProperties\":{\"oneOf\":[{\"$ref\":\"#/$defs/EnvVar\"},{\"type\":\"string\"}]},\"description\":\"Environment variables to set in the sandbox environment.\",\"type\":\"object\"},\"from_environment\":{\"description\":\"Optional. The source environment to copy/fork from.\\nFormat: `environments/{environment_id}` or `{environment_id}`.\\nWhen specified, `sources` and `env` must be empty.\",\"type\":\"string\"},\"mode\":{\"$ref\":\"#/$defs/EnvironmentMode\",\"description\":\"The compute lifecycle mode for this environment.\"},\"network\":{\"description\":\"Network configuration for the environment.\",\"oneOf\":[{\"$ref\":\"#/$defs/EnvironmentNetworkEgressAllowlist\"},{\"enum\":[\"disabled\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"All network egress is blocked.\"]}]},\"sources\":{\"description\":\"Sources to be mounted into the environment.\",\"items\":{\"$ref\":\"#/$defs/Source\"},\"type\":\"array\"},\"system_instruction\":{\"description\":\"Optional. System instruction applied to interactions running in this\\nenvironment. Only supported for `SELF_HOSTED` environments, where it is\\nrecommended.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"environments\",\"name\":\"CreateEnvironmentRequest\"}],\"x-speakeasy-model-namespace\":\"environments\"},\"EgressRule\":{\"description\":\"A single domain allowlist rule with optional header injection.\",\"properties\":{\"credential\":{\"description\":\"Optional. Reference to a server-managed Credential resource by ID.\",\"type\":\"string\"},\"domain\":{\"description\":\"Domain to allow outbound requests to. Supports wildcards (e.g.\\n'*.googleapis.com'). Use '*' to allow all domains.\",\"type\":\"string\"},\"transform\":{\"description\":\"Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically.\",\"oneOf\":[{\"description\":\"A list of headers to inject.\",\"items\":{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"A single header to inject.\",\"type\":\"object\"},\"type\":\"array\"},{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"A single header injection mapping, e.g., {\\\"Authorization\\\": \\\"Bearer token\\\"}.\",\"type\":\"object\"}],\"x-speakeasy-param-sensitive\":true\x7d\x7d,\"required\":[\"domain\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"AllowlistEntry\"},\"EnvVar\":{\"description\":\"An environment variable to set in the execution environment.\",\"properties\":{\"credential\":{\"description\":\"Optional reference to a server-managed Credential resource by ID.\",\"type\":\"string\"},\"value\":{\"description\":\"Direct string value for plain environment variables.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"EnvironmentMode\":{\"description\":\"The compute lifecycle mode for an environment.\",\"enum\":[\"on_demand\",\"self_hosted\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"\",\"\"],\"x-speakeasy-exports\":[{\"group\":\"environments\",\"name\":\"EnvironmentMode\"},{\"group\":\"interactions\",\"name\":\"EnvironmentMode\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"EnvironmentNetworkEgressAllowlist\":{\"description\":\"Network egress configuration for the environment.\",\"example\":{\"allowlist\":[{\"domain\":\"github.com\",\"transform\":[{\"Authorization\":\"Bearer your-token\"}]},{\"domain\":\"*.googleapis.com\"}]},\"properties\":{\"allowlist\":{\"description\":\"List of allowed domains and their configurations. Set to `\\\"disabled\\\"`\\nto block all network egress.\",\"oneOf\":[{\"items\":{\"$ref\":\"#/$defs/EgressRule\"},\"type\":\"array\"},{\"enum\":[\"disabled\"],\"title\":\"Disabled\",\"type\":\"string\",\"x-google-enum-descriptions\":[\"All network egress is blocked.\"]}]\x7d\x7d,\"type\":\"object\",\"x-example-summaries\":[\"Network Allowlist\"],\"x-speakeasy-model-namespace\":\"interactions\"},\"Source\":{\"description\":\"A source to be mounted into the environment.\",\"properties\":{\"content\":{\"description\":\"The inline content if `type` is `INLINE`.\",\"type\":\"string\"},\"encoding\":{\"description\":\"Optional encoding for inline content (e.g. `base64`).\",\"type\":\"string\"},\"source\":{\"description\":\"The source of the environment.\\nFor Cloud Storage, this is the Cloud Storage path.\\nFor GitHub, this is the GitHub path.\",\"type\":\"string\"},\"target\":{\"description\":\"Where the source should appear in the environment.\",\"type\":\"string\"},\"type\":{\"enum\":[\"gcs\",\"inline\",\"repository\",\"skill_registry\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"A Cloud Storage bucket.\",\"Inline content.\",\"A generic repository. The protocol prefix in the source URL\\nidentifies the provider (e.g., github://, gcs://).\",\"A skill resource from the Skill Registry Service.\\nSkill: projects/{project}/locations/{location}/skills/{skill}\\nSkillRevision:\\nprojects/{project}/locations/{location}/skills/{skill}/revisions/{revision}\\nSupport mounting all skills under a project:\\nprojects/{project}/locations/{location}/skills.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"\x7d\x7d,\"$ref\":\"#/$defs/CreateEnvironmentRequest\",\"$schema\":\"https://json-schema.org/draft/2020-12/schema\"}", "CreateInteraction": "{\"$defs\":{\"AgentInteraction\":{\"description\":\"Interaction for generating the completion using agents.\",\"properties\":{\"agent\":{\"$ref\":\"#/$defs/AgentOption\",\"description\":\"The name of the `Agent` used for generating the interaction.\"},\"agent_config\":{\"description\":\"Configuration parameters for the agent interaction.\",\"oneOf\":[{\"$ref\":\"#/$defs/AntigravityAgentConfig\"},{\"$ref\":\"#/$defs/CodeMenderAgentConfig\"},{\"$ref\":\"#/$defs/DeepResearchAgentConfig\"},{\"$ref\":\"#/$defs/DynamicAgentConfig\"}],\"x-speakeasy-unknown-values\":\"disallow\"},\"background\":{\"description\":\"Input only. Whether to run the model interaction in the background.\",\"type\":\"boolean\"},\"continuation_token\":{\"description\":\"Opaque token to resume a long decode. Output: set when status is\\nREQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest\\ntoken back unchanged when creating the next interaction to continue\\ndecoding.\",\"format\":\"byte\",\"type\":\"string\"},\"environment\":{\"description\":\"The environment configuration for the interaction. Can be an object\\nspecifying remote environment sources or a string referencing an existing\\nenvironment ID.\",\"oneOf\":[{\"$ref\":\"#/$defs/EnvironmentConfig\"},{\"type\":\"string\"}],\"x-speakeasy-unknown-values\":\"disallow\"},\"input\":{\"$ref\":\"#/$defs/InteractionsInput\"},\"labels\":{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"The labels with user-defined metadata for the request.\\n\\nLabel keys and values can be no longer than 63 characters\\n(Unicode codepoints) and can only contain lowercase letters, numeric\\ncharacters, underscores, and dashes. International characters are allowed.\\nLabel values are optional. Label keys must start with a letter.\",\"type\":\"object\"},\"previous_interaction_id\":{\"description\":\"The ID of the previous interaction, if any.\",\"type\":\"string\"},\"response_format\":{\"description\":\"Enforces that the generated response is a JSON object that complies with\\nthe JSON schema specified in this field.\",\"oneOf\":[{\"$ref\":\"#/$defs/ResponseFormat\"},{\"items\":{\"$ref\":\"#/$defs/ResponseFormat\"},\"title\":\"ResponseFormatList\",\"type\":\"array\"}]},\"response_mime_type\":{\"deprecated\":true,\"description\":\"The mime type of the response. This is required if response_format is set.\",\"type\":\"string\"},\"response_modalities\":{\"deprecated\":true,\"description\":\"The requested modalities of the response (TEXT, IMAGE, AUDIO).\",\"items\":{\"$ref\":\"#/$defs/ResponseModality\"},\"type\":\"array\"},\"safety_settings\":{\"description\":\"Safety settings for the interaction.\",\"items\":{\"$ref\":\"#/$defs/SafetySetting\"},\"type\":\"array\"},\"service_tier\":{\"$ref\":\"#/$defs/ServiceTier\",\"description\":\"The service tier for the interaction.\"},\"store\":{\"description\":\"Input only. Whether to store the response and request for later retrieval.\",\"type\":\"boolean\"},\"stream\":{\"default\":true,\"description\":\"Input only. Whether the interaction is streamed as server-sent events. Defaults to true; set false to receive one complete interaction.\",\"type\":\"boolean\"},\"system_instruction\":{\"description\":\"System instruction for the interaction.\",\"type\":\"string\"},\"tools\":{\"description\":\"A list of tool declarations the model may call during interaction.\",\"items\":{\"$ref\":\"#/$defs/Tool\"},\"type\":\"array\"},\"webhook_config\":{\"$ref\":\"#/$defs/WebhookConfig\",\"description\":\"Optional. Webhook configuration for receiving notifications when the\\ninteraction completes.\"\x7d\x7d,\"required\":[\"agent\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"CreateAgentInteractionParamsNonStreaming\",\"representation\":\"input\"},{\"group\":\"interactions\",\"name\":\"CreateAgentInteractionParamsStreaming\",\"representation\":\"input\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"CreateAgentInteraction\"},\"AgentOption\":{\"description\":\"The agent to interact with.\",\"enum\":[\"deep-research-preview-04-2026\",\"deep-research-max-preview-04-2026\",\"antigravity-preview-05-2026\",\"antigravity-preview-09-2026\"],\"title\":\"Agent\",\"type\":\"string\",\"x-speakeasy-enum-descriptions\":[\"Gemini Deep Research Agent\",\"Gemini Deep Research Max Agent\",\"Use the Antigravity managed agent to perform multi-step tasks that require reasoning, file operations, and tool use.\",\"Use the Antigravity managed agent to perform multi-step tasks that require reasoning, file operations, and tool use.\"],\"x-speakeasy-enum-format\":\"union\",\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-unknown-values\":\"allow\"},\"AllowedTools\":{\"description\":\"The configuration for allowed tools.\",\"properties\":{\"mode\":{\"$ref\":\"#/$defs/ToolChoiceType\",\"description\":\"The mode of the tool choice.\"},\"tools\":{\"description\":\"The names of the allowed tools.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"AllowedTools\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"Annotation\":{\"description\":\"Citation information for model-generated content.\",\"oneOf\":[{\"$ref\":\"#/$defs/FileCitation\"},{\"$ref\":\"#/$defs/PlaceCitation\"},{\"$ref\":\"#/$defs/SpeechAnnotation\"},{\"$ref\":\"#/$defs/UrlCitation\"},{\"$ref\":\"#/$defs/WordInfo\"}],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Annotation\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"AntigravityAgentConfig\":{\"description\":\"Configuration for the Antigravity agent runtime.\\nProvides server-side control over the agent's execution environment\\nand tool configuration.\",\"properties\":{\"max_total_tokens\":{\"description\":\"Max total tokens for the agent run.\",\"format\":\"int64\",\"type\":\"string\"},\"model\":{\"description\":\"The model to use for agent reasoning.\",\"type\":\"string\"},\"type\":{\"const\":\"antigravity\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"AntigravityAgentConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-unknown-values\":\"disallow\"},\"AudioContent\":{\"description\":\"An audio content block.\",\"example\":{\"data\":\"BASE64_ENCODED_AUDIO\",\"mime_type\":\"audio/wav\",\"type\":\"audio\"},\"properties\":{\"channels\":{\"description\":\"The number of audio channels.\",\"format\":\"int32\",\"type\":\"integer\"},\"data\":{\"description\":\"The audio content.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"mime_type\":{\"description\":\"The mime type of the audio.\",\"enum\":[\"audio/wav\",\"audio/mp3\",\"audio/aiff\",\"audio/aac\",\"audio/ogg\",\"audio/flac\",\"audio/mpeg\",\"audio/m4a\",\"audio/l16\",\"audio/opus\",\"audio/alaw\",\"audio/mulaw\",\"audio/webm\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"WAV audio format\",\"MP3 audio format\",\"AIFF audio format\",\"AAC audio format\",\"OGG audio format\",\"FLAC audio format\",\"MPEG audio format\",\"M4A audio format\",\"L16 audio format\",\"OPUS audio format\",\"ALAW audio format\",\"MULAW audio format\",\"WebM audio format\"]},\"processing\":{\"description\":\"How the model processes this audio for understanding.\",\"oneOf\":[{\"$ref\":\"#/$defs/AudioMediaProcessing\"},{\"enum\":[\"static\"],\"title\":\"audio_processing_enum\",\"type\":\"string\",\"x-google-enum-descriptions\":[\"All audio placed in context.\"]}],\"title\":\"AudioProcessing\"},\"sample_rate\":{\"description\":\"The sample rate of the audio.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"const\":\"audio\"},\"uri\":{\"description\":\"The URI of the audio.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Audio\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"AudioContent\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"AudioMediaProcessing\":{\"oneOf\":[{\"$ref\":\"#/$defs/AudioStaticMediaProcessing\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"AudioResponseFormat\":{\"description\":\"Configuration for audio output format.\",\"example\":{\"sample_rate\":24000,\"type\":\"audio\"},\"properties\":{\"bit_rate\":{\"description\":\"Bit rate in bits per second (bps). Only applicable for compressed formats\\n(MP3, Opus).\",\"format\":\"int32\",\"type\":\"integer\"},\"delivery\":{\"description\":\"The delivery mode for the audio output.\",\"enum\":[\"inline\",\"uri\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Audio data is returned inline in the response.\",\"Audio data is returned as a URI.\"]},\"mime_type\":{\"description\":\"The MIME type of the audio output.\",\"enum\":[\"audio/mp3\",\"audio/ogg_opus\",\"audio/l16\",\"audio/wav\",\"audio/alaw\",\"audio/mulaw\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"MP3 audio format.\",\"OGG Opus audio format.\",\"Raw PCM (L16) audio format.\",\"WAV audio format.\",\"A-law audio format.\",\"Mu-law audio format.\"]},\"sample_rate\":{\"description\":\"Sample rate in Hz.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"const\":\"audio\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Audio Output\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"AudioResponseFormat\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"AudioStaticMediaProcessing\":{\"properties\":{\"end_offset\":{\"description\":\"Optional. Segment end time, relative to the start of the audio stream. Specified\\nas a decimal number of seconds followed by an 's' suffix, e.g., \\\"30s\\\".\\nMust be positive and greater than `start_offset` if `start_offset` is\\nset.\",\"format\":\"google-duration\",\"type\":\"string\"},\"start_offset\":{\"description\":\"Optional. Segment start time, relative to the start of the audio stream. Specified\\nas a decimal number of seconds followed by an 's' suffix, e.g., \\\"10.5s\\\".\\nMust be non-negative.\",\"format\":\"google-duration\",\"type\":\"string\"},\"type\":{\"const\":\"static\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"AudioStaticMediaProcessing\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"CodeExecution\":{\"description\":\"A tool that can be used by the model to execute code.\",\"properties\":{\"type\":{\"const\":\"code_execution\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"CodeExecutionCallStep\":{\"description\":\"Code execution call step.\",\"example\":{\"arguments\":{\"code\":\"print(sum(range(1, 11)))\",\"language\":\"python\"},\"id\":\"code_call_71021\",\"type\":\"code_execution_call\"},\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/CodeExecutionCallStepArguments\",\"description\":\"Required. The arguments to pass to the code execution.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"code_execution_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"CodeExecutionCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"CodeExecutionCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"CodeExecutionCallStepArguments\":{\"description\":\"The arguments to pass to the code execution.\",\"properties\":{\"code\":{\"description\":\"The code to be executed.\",\"type\":\"string\"},\"language\":{\"description\":\"Programming language of the `code`.\",\"enum\":[\"python\",\"bash\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Python \\u003e= 3.10, with numpy and simpy available.\",\"Bash. Only available for Gemini 3.0 model or above.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"CodeExecutionCallArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"CodeExecutionCallArguments\"},\"CodeExecutionResultStep\":{\"description\":\"Code execution result step.\",\"example\":{\"call_id\":\"code_call_71021\",\"result\":\"55\\n\",\"type\":\"code_execution_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"is_error\":{\"description\":\"Whether the code execution resulted in an error.\",\"type\":\"boolean\"},\"result\":{\"description\":\"The output of the code execution.\",\"oneOf\":[{\"description\":\"The contents of the list.\",\"items\":{\"$ref\":\"#/$defs/Content\"},\"title\":\"ContentList\",\"type\":\"array\"},{\"type\":\"string\"}]},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"code_execution_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"CodeExecutionResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"CodeExecutionResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"CodeMenderAgentConfig\":{\"description\":\"Configuration for the CodeMender agent.\",\"properties\":{\"find_request\":{\"$ref\":\"#/$defs/FindRequest\",\"description\":\"Parameters for finding vulnerabilities.\"},\"fix_request\":{\"$ref\":\"#/$defs/FixRequest\",\"description\":\"Parameters for fixing vulnerabilities.\"},\"model\":{\"description\":\"The name of the model to use for the CodeMender agent. One\\nCodeMender session will only use one model.\",\"type\":\"string\"},\"session_config\":{\"$ref\":\"#/$defs/SessionConfig\",\"description\":\"Optional session-specific configurations to override default agent\\nbehavior.\"},\"session_id\":{\"description\":\"Parameter for grouping multiple interactions that belong to\\nthe same CodeMender session.\",\"type\":\"string\"},\"type\":{\"const\":\"code-mender\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"CodeMenderAgentConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-unknown-values\":\"disallow\"},\"ComputerUse\":{\"description\":\"A tool that can be used by the model to interact with the computer.\",\"properties\":{\"disabled_safety_policies\":{\"description\":\"Optional. Disabled safety policies for computer use.\",\"items\":{\"enum\":[\"financial_transactions\",\"sensitive_data_modification\",\"communication_tool\",\"account_creation\",\"data_modification\",\"user_consent_management\",\"legal_terms_and_agreements\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Safety policy for financial transactions.\",\"Safety policy for sensitive data modification.\",\"Safety policy for communication tools (e.g. Gmail, Chat, Meet).\",\"Safety policy for account creation.\",\"Safety policy for data modification.\",\"Safety policy for user consent management.\",\"Safety policy for legal terms and agreements.\"]},\"type\":\"array\"},\"enable_prompt_injection_detection\":{\"description\":\"Whether enable the prompt injection detection check on computer-use\\nrequest.\",\"type\":\"boolean\"},\"environment\":{\"description\":\"The environment being operated.\",\"enum\":[\"browser\",\"mobile\",\"desktop\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Operates in a web browser.\",\"Operates in a mobile environment.\",\"Operates in a desktop environment.\"]},\"excluded_predefined_functions\":{\"description\":\"The list of predefined functions that are excluded from the model call.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"type\":{\"const\":\"computer_use\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Content\":{\"description\":\"The content of the response.\",\"oneOf\":[{\"$ref\":\"#/$defs/AudioContent\"},{\"$ref\":\"#/$defs/DocumentContent\"},{\"$ref\":\"#/$defs/ImageContent\"},{\"$ref\":\"#/$defs/TextContent\"},{\"$ref\":\"#/$defs/VideoContent\"}],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Content\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"DeepResearchAgentConfig\":{\"description\":\"Configuration for the Deep Research agent.\",\"properties\":{\"collaborative_planning\":{\"description\":\"Enables human-in-the-loop planning for the Deep Research agent. If set to\\ntrue, the Deep Research agent will provide a research plan in its response.\\nThe agent will then proceed only if the user confirms the plan in the next\\nturn.\",\"type\":\"boolean\"},\"enable_bigquery_tool\":{\"description\":\"Enables bigquery tool for the Deep Research agent.\",\"type\":\"boolean\"},\"thinking_summaries\":{\"$ref\":\"#/$defs/ThinkingSummaries\",\"description\":\"Whether to include thought summaries in the response.\"},\"type\":{\"const\":\"deep-research\"},\"visualization\":{\"description\":\"Whether to include visualizations in the response.\",\"enum\":[\"off\",\"auto\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Do not include visualizations.\",\"Automatically include visualizations.\"]\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"DeepResearchAgentConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-unknown-values\":\"disallow\"},\"DocumentContent\":{\"description\":\"A document content block.\",\"example\":{\"data\":\"BASE64_ENCODED_DOCUMENT\",\"mime_type\":\"application/pdf\",\"type\":\"document\"},\"properties\":{\"data\":{\"description\":\"The document content.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"mime_type\":{\"description\":\"The mime type of the document.\",\"enum\":[\"application/pdf\",\"text/csv\",\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"application/vnd.ms-powerpoint\",\"application/vnd.oasis.opendocument.presentation\",\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"application/msword\",\"application/vnd.openxmlformats-officedocument.wordprocessingml.template\",\"application/vnd.oasis.opendocument.text\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"application/vnd.ms-excel\",\"application/vnd.oasis.opendocument.spreadsheet\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"PDF document format\",\"CSV document format\",\"PPTX presentation format\",\"PPT presentation format\",\"ODP presentation format\",\"DOCX document format\",\"DOC document format\",\"DOTX document template format\",\"ODT document format\",\"XLSX spreadsheet format\",\"XLS spreadsheet format\",\"ODS spreadsheet format\"]},\"processing\":{\"description\":\"How the model processes this document for understanding.\",\"oneOf\":[{\"$ref\":\"#/$defs/DocumentMediaProcessing\"},{\"enum\":[\"static\"],\"title\":\"document_processing_enum\",\"type\":\"string\",\"x-google-enum-descriptions\":[\"All extracted pages placed in context.\"]}],\"title\":\"DocumentProcessing\"},\"resolution\":{\"$ref\":\"#/$defs/MediaResolution\",\"description\":\"The resolution of the media. Applicable when PAGE_IMAGE is selected in\\ncontent_layers.\"},\"type\":{\"const\":\"document\"},\"uri\":{\"description\":\"The URI of the document.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Document\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"DocumentContent\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"DocumentMediaProcessing\":{\"oneOf\":[{\"$ref\":\"#/$defs/DocumentStaticMediaProcessing\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"DocumentStaticMediaProcessing\":{\"properties\":{\"page_options\":{\"$ref\":\"#/$defs/PageProcessingOptions\",\"description\":\"Options for paginated documents. Only valid for paginated document\\nMIME types (e.g. PDF, Office documents, and presentations).\"},\"spreadsheet_options\":{\"$ref\":\"#/$defs/SpreadsheetProcessingOptions\",\"description\":\"Options for spreadsheets. Only valid for spreadsheet MIME types\\n(.xlsx, .xls, .ods).\"},\"type\":{\"const\":\"static\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"DocumentStaticMediaProcessing\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"DynamicAgentConfig\":{\"additionalProperties\":true,\"description\":\"Configuration for dynamic agents.\",\"properties\":{\"type\":{\"const\":\"dynamic\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"DynamicAgentConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-unknown-values\":\"disallow\"},\"EgressRule\":{\"description\":\"A single domain allowlist rule with optional header injection.\",\"properties\":{\"credential\":{\"description\":\"Optional. Reference to a server-managed Credential resource by ID.\",\"type\":\"string\"},\"domain\":{\"description\":\"Domain to allow outbound requests to. Supports wildcards (e.g.\\n'*.googleapis.com'). Use '*' to allow all domains.\",\"type\":\"string\"},\"transform\":{\"description\":\"Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically.\",\"oneOf\":[{\"description\":\"A list of headers to inject.\",\"items\":{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"A single header to inject.\",\"type\":\"object\"},\"type\":\"array\"},{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"A single header injection mapping, e.g., {\\\"Authorization\\\": \\\"Bearer token\\\"}.\",\"type\":\"object\"}],\"x-speakeasy-param-sensitive\":true\x7d\x7d,\"required\":[\"domain\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"AllowlistEntry\"},\"EnvVar\":{\"description\":\"An environment variable to set in the execution environment.\",\"properties\":{\"credential\":{\"description\":\"Optional reference to a server-managed Credential resource by ID.\",\"type\":\"string\"},\"value\":{\"description\":\"Direct string value for plain environment variables.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"EnvironmentConfig\":{\"description\":\"Configuration for a custom environment.\",\"examples\":[{\"sources\":[{\"content\":\"You are a data analyst. Always include visualizations and export results as PDF.\",\"target\":\".agents/AGENTS.md\",\"type\":\"inline\"},{\"content\":\"---\\nname: slide-maker\\ndescription: Create HTML slide decks\\n---\\n# Slide Maker\\n\\nWhen asked to create a presentation:\\n1. Analyze the input data\\n2. Create an HTML slide deck with reveal.js\\n3. Save to /workspace/output/slides.html\",\"target\":\".agents/skills/slide-maker/SKILL.md\",\"type\":\"inline\"}],\"type\":\"remote\"},{\"sources\":[{\"source\":\"https://github.com/my-org/my-skills.git\",\"target\":\".agents/skills\",\"type\":\"repository\"},{\"source\":\"gs://my-bucket/my-folder\",\"target\":\"/workspace/data\",\"type\":\"gcs\"}],\"type\":\"remote\"},{\"network\":{\"allowlist\":[{\"domain\":\"pypi.org\"},{\"domain\":\"*.github.com\"}]},\"type\":\"remote\"},{\"network\":{\"allowlist\":[{\"domain\":\"api.github.com\",\"transform\":{\"Authorization\":\"Bearer YOUR_GITHUB_TOKEN\"\x7d\x7d]},\"type\":\"remote\"}],\"properties\":{\"custom_config\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Optional. Arbitrary customer-defined JSON configuration passed through\\nto the self-hosted environment poller. Only supported when `mode` is\\n`SELF_HOSTED`.\",\"type\":\"object\"},\"env\":{\"additionalProperties\":{\"oneOf\":[{\"$ref\":\"#/$defs/EnvVar\"},{\"type\":\"string\"}]},\"description\":\"Environment variables to set in the sandbox environment.\",\"type\":\"object\"},\"environment_id\":{\"description\":\"Optional. The environment ID for the interaction. If specified, the request will\\nupdate the existing environment instead of creating a new one;\\ncreation-only fields (`env` and `sources`) cannot be updated when resuming\\nan existing environment.\",\"type\":\"string\"},\"mode\":{\"$ref\":\"#/$defs/EnvironmentMode\",\"description\":\"The compute lifecycle mode for this environment.\"},\"network\":{\"description\":\"Network configuration for the environment.\",\"oneOf\":[{\"$ref\":\"#/$defs/EnvironmentNetworkEgressAllowlist\"},{\"enum\":[\"disabled\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"All network egress is blocked.\"]}]},\"sources\":{\"items\":{\"$ref\":\"#/$defs/Source\"},\"type\":\"array\"},\"type\":{\"const\":\"remote\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Inline Sources\",\"External Sources\",\"Network Allowlist\",\"Proxy Credentials\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Environment\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"Environment\",\"x-speakeasy-unknown-values\":\"disallow\"},\"EnvironmentMode\":{\"description\":\"The compute lifecycle mode for an environment.\",\"enum\":[\"on_demand\",\"self_hosted\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"\",\"\"],\"x-speakeasy-exports\":[{\"group\":\"environments\",\"name\":\"EnvironmentMode\"},{\"group\":\"interactions\",\"name\":\"EnvironmentMode\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"EnvironmentNetworkEgressAllowlist\":{\"description\":\"Network egress configuration for the environment.\",\"example\":{\"allowlist\":[{\"domain\":\"github.com\",\"transform\":[{\"Authorization\":\"Bearer your-token\"}]},{\"domain\":\"*.googleapis.com\"}]},\"properties\":{\"allowlist\":{\"description\":\"List of allowed domains and their configurations. Set to `\\\"disabled\\\"`\\nto block all network egress.\",\"oneOf\":[{\"items\":{\"$ref\":\"#/$defs/EgressRule\"},\"type\":\"array\"},{\"enum\":[\"disabled\"],\"title\":\"Disabled\",\"type\":\"string\",\"x-google-enum-descriptions\":[\"All network egress is blocked.\"]}]\x7d\x7d,\"type\":\"object\",\"x-example-summaries\":[\"Network Allowlist\"],\"x-speakeasy-model-namespace\":\"interactions\"},\"ExaAISearchConfig\":{\"description\":\"Used to specify configuration for ExaAISearch.\",\"properties\":{\"api_key\":{\"description\":\"Required. The API key for ExaAiSearch.\",\"type\":\"string\",\"x-speakeasy-param-sensitive\":true},\"custom_config\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Optional. This field can be used to pass any parameter from the Exa.ai Search API.\",\"type\":\"object\"\x7d\x7d,\"required\":[\"api_key\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"FileCitation\":{\"description\":\"A file citation annotation.\",\"properties\":{\"custom_metadata\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"User provided metadata about the retrieved context.\",\"type\":\"object\"},\"document_uri\":{\"description\":\"The URI of the file.\",\"type\":\"string\"},\"end_index\":{\"description\":\"End of the attributed segment, exclusive.\",\"format\":\"int32\",\"type\":\"integer\"},\"file_name\":{\"description\":\"The name of the file.\",\"type\":\"string\"},\"media_id\":{\"description\":\"Media ID in-case of image citations, if applicable.\",\"type\":\"string\"},\"page_number\":{\"description\":\"Page number of the cited document, if applicable.\",\"format\":\"int32\",\"type\":\"integer\"},\"source\":{\"description\":\"Source attributed for a portion of the text.\",\"type\":\"string\"},\"start_index\":{\"description\":\"Start of segment of the response that is attributed to this source.\\n\\nIndex indicates the start of the segment, measured in bytes.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"const\":\"file_citation\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"FileCitation\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"FileContent\":{\"description\":\"Content of a single file in the codebase.\",\"properties\":{\"content\":{\"description\":\"The UTF-8 encoded text content of the file.\",\"type\":\"string\"},\"path\":{\"description\":\"The relative path of the file from the project root.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"FileSearch\":{\"description\":\"A tool that can be used by the model to search files.\",\"properties\":{\"file_search_store_names\":{\"description\":\"The file search store names to search.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"metadata_filter\":{\"description\":\"Metadata filter to apply to the semantic retrieval documents and chunks.\",\"type\":\"string\"},\"top_k\":{\"description\":\"The number of semantic retrieval chunks to retrieve.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"const\":\"file_search\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"FileSearchCallStep\":{\"description\":\"File Search call step.\",\"example\":{\"id\":\"file_call_88192\",\"type\":\"file_search_call\"},\"properties\":{\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"file_search_call\"\x7d\x7d,\"required\":[\"id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"FileSearchCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"FileSearchCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"FileSearchResultStep\":{\"description\":\"File Search result step.\",\"example\":{\"call_id\":\"file_call_88192\",\"type\":\"file_search_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"file_search_result\"\x7d\x7d,\"required\":[\"call_id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"FileSearchResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"FileSearchResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"Filter\":{\"description\":\"Config for filters.\",\"properties\":{\"metadata_filter\":{\"description\":\"Optional. String for metadata filtering.\",\"type\":\"string\"},\"vector_distance_threshold\":{\"description\":\"Optional. Only returns contexts with vector distance smaller than the\\nthreshold.\",\"format\":\"double\",\"type\":\"number\"},\"vector_similarity_threshold\":{\"description\":\"Optional. Only returns contexts with vector similarity larger than the\\nthreshold.\",\"format\":\"double\",\"type\":\"number\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"FindRequest\":{\"description\":\"Request parameters specific to FIND sessions, used for discovering\\nvulnerabilities in a codebase.\",\"properties\":{\"description\":{\"description\":\"Additional context or custom instructions provided by the user to guide\\nthe vulnerability analysis.\",\"type\":\"string\"},\"finding_id\":{\"description\":\"The identifier of a specific finding to verify. This is primarily used in\\nVERIFY mode to focus the agent's execution-based validation on a single\\nvulnerability.\",\"type\":\"string\"},\"mode\":{\"description\":\"The mode of the find session.\",\"enum\":[\"scan\",\"verify\"],\"title\":\"Mode\",\"type\":\"string\",\"x-google-enum-descriptions\":[\"Fast scan using only the initial classifier.\",\"Performs classification followed by detailed investigation.\"]},\"source_files\":{\"description\":\"A list of source files to provide as context for the scan.\",\"items\":{\"$ref\":\"#/$defs/FileContent\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"FixRequest\":{\"description\":\"Request parameters specific to FIX sessions, used for generating and\\nvalidating security patches.\",\"properties\":{\"description\":{\"description\":\"Additional context or custom instructions provided by the user to guide\\nthe patch generation process.\",\"type\":\"string\"},\"finding_id\":{\"description\":\"The identifier of the specific security finding to be remediated. This ID\\nmaps to a previously discovered vulnerability.\",\"type\":\"string\"},\"source_files\":{\"description\":\"A list of source files providing context for the remediation. These files\\nare typically the ones containing the identified vulnerability.\",\"items\":{\"$ref\":\"#/$defs/FileContent\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Function\":{\"description\":\"A tool that can be used by the model.\",\"properties\":{\"defer_loading\":{\"description\":\"If true, the function's loading is deferred.\",\"type\":\"boolean\"},\"description\":{\"description\":\"A description of the function.\",\"type\":\"string\"},\"name\":{\"description\":\"The name of the function.\",\"type\":\"string\"},\"parameters\":{\"description\":\"The JSON Schema for the function's parameters.\\n\\nSupports a subset of JSON Schema. `minLength`, `maxLength`,\\n`minProperties`, `maxProperties`, `uniqueItems`, `contains`,\\n`minContains`, and `maxContains` are ignored and not enforced.\"},\"short_description\":{\"description\":\"A brief description of the function, shown to the model as a\\nshort summary of functions with `defer_loading` set to true.\",\"type\":\"string\"},\"type\":{\"const\":\"function\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Function\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"FunctionCallStep\":{\"description\":\"A function tool call step.\",\"example\":{\"arguments\":{\"location\":\"Boston, MA\"},\"id\":\"call_98231\",\"name\":\"get_weather\",\"type\":\"function_call\"},\"properties\":{\"arguments\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Required. The arguments to pass to the function.\",\"type\":\"object\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"name\":{\"description\":\"Required. The name of the tool to call.\",\"type\":\"string\"},\"type\":{\"const\":\"function_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"name\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"FunctionCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"FunctionCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"FunctionResultStep\":{\"description\":\"Result of a function tool call.\",\"example\":{\"call_id\":\"call_98231\",\"name\":\"get_weather\",\"result\":[{\"text\":\"{\\\"weather\\\":\\\"sunny\\\"}\",\"type\":\"text\"}],\"type\":\"function_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"is_error\":{\"description\":\"Whether the tool call resulted in an error.\",\"type\":\"boolean\"},\"name\":{\"description\":\"The name of the tool that was called.\",\"type\":\"string\"},\"result\":{\"description\":\"Required. The result of the tool call.\",\"oneOf\":[{\"items\":{\"$ref\":\"#/$defs/FunctionResultSubContent\"},\"type\":\"array\"},{\"additionalProperties\":true,\"type\":\"object\"},{\"type\":\"string\"}]},\"type\":{\"const\":\"function_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"FunctionResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"FunctionResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"FunctionResultSubContent\":{\"oneOf\":[{\"$ref\":\"#/$defs/AudioContent\"},{\"$ref\":\"#/$defs/DocumentContent\"},{\"$ref\":\"#/$defs/Function\"},{\"$ref\":\"#/$defs/ImageContent\"},{\"$ref\":\"#/$defs/TextContent\"},{\"$ref\":\"#/$defs/VideoContent\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"FunctionResultSubcontent\"},\"GenerationConfig\":{\"description\":\"Configuration parameters for model interactions.\",\"properties\":{\"image_config\":{\"$ref\":\"#/$defs/ImageConfig\",\"deprecated\":true,\"description\":\"Configuration for image interaction.\"},\"max_output_tokens\":{\"description\":\"The maximum number of tokens to include in the response.\",\"format\":\"int32\",\"type\":\"integer\"},\"seed\":{\"description\":\"Seed used in decoding for reproducibility.\",\"format\":\"int32\",\"type\":\"integer\"},\"speech_config\":{\"description\":\"Optional. Speech and multi-speaker configuration.\",\"oneOf\":[{\"$ref\":\"#/$defs/SpeakerConfig\"},{\"items\":{\"$ref\":\"#/$defs/SpeechConfig\"},\"type\":\"array\"}]},\"stop_sequences\":{\"description\":\"A list of character sequences that will stop output interaction.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"temperature\":{\"deprecated\":true,\"description\":\"Controls the randomness of the output.\",\"format\":\"float\",\"type\":\"number\"},\"thinking_level\":{\"$ref\":\"#/$defs/ThinkingLevel\",\"description\":\"The level of thought tokens that the model should generate.\"},\"thinking_summaries\":{\"$ref\":\"#/$defs/ThinkingSummaries\",\"description\":\"Whether to include thought summaries in the response.\"},\"tool_choice\":{\"description\":\"The tool choice configuration.\",\"oneOf\":[{\"$ref\":\"#/$defs/ToolChoiceConfig\"},{\"$ref\":\"#/$defs/ToolChoiceType\"}]},\"top_p\":{\"deprecated\":true,\"description\":\"The maximum cumulative probability of tokens to consider when sampling.\",\"format\":\"float\",\"type\":\"number\"},\"transcription_config\":{\"$ref\":\"#/$defs/TranscriptionConfig\",\"description\":\"Optional. Configuration for speech recognition (transcription). If present, ASR is\\nenabled.\"},\"video_config\":{\"$ref\":\"#/$defs/VideoConfig\",\"description\":\"Configuration for video generation.\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GenerationConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleMaps\":{\"description\":\"A tool that can be used by the model to call Google Maps.\",\"properties\":{\"enable_widget\":{\"description\":\"Whether to return a widget context token in the tool call result of the\\nresponse.\",\"type\":\"boolean\"},\"latitude\":{\"description\":\"The latitude of the user's location.\",\"format\":\"double\",\"type\":\"number\"},\"longitude\":{\"description\":\"The longitude of the user's location.\",\"format\":\"double\",\"type\":\"number\"},\"type\":{\"const\":\"google_maps\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleMapsCallStep\":{\"description\":\"Google Maps call step.\",\"example\":{\"arguments\":{\"queries\":[\"parks near San Francisco\"]},\"id\":\"maps_call_39201\",\"type\":\"google_maps_call\"},\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/GoogleMapsCallStepArguments\",\"description\":\"The arguments to pass to the Google Maps tool.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"google_maps_call\"\x7d\x7d,\"required\":[\"id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"GoogleMapsCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleMapsCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleMapsCallStepArguments\":{\"description\":\"The arguments to pass to the Google Maps tool.\",\"properties\":{\"queries\":{\"description\":\"The queries to be executed.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleMapsCallArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"GoogleMapsCallArguments\"},\"GoogleMapsResultItem\":{\"description\":\"The result of the Google Maps.\",\"properties\":{\"places\":{\"items\":{\"$ref\":\"#/$defs/GoogleMapsResultPlaces\"},\"type\":\"array\"},\"widget_context_token\":{\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleMapsResult\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"GoogleMapsResult\"},\"GoogleMapsResultPlaces\":{\"properties\":{\"name\":{\"type\":\"string\"},\"place_id\":{\"type\":\"string\"},\"review_snippets\":{\"items\":{\"$ref\":\"#/$defs/ReviewSnippet\"},\"type\":\"array\"},\"url\":{\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleMapsResultStep\":{\"description\":\"Google Maps result step.\",\"example\":{\"call_id\":\"maps_call_39201\",\"result\":[{\"places\":[{\"name\":\"Golden Gate Park\",\"place_id\":\"ChIJIQBpAG2ahYAR9R7bNdTLg8M\",\"url\":\"https://maps.google.com/?cid=12345\"}]}],\"type\":\"google_maps_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"result\":{\"items\":{\"$ref\":\"#/$defs/GoogleMapsResultItem\"},\"type\":\"array\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"google_maps_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"GoogleMapsResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleMapsResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleSearch\":{\"description\":\"A tool that can be used by the model to search Google.\",\"properties\":{\"search_types\":{\"description\":\"The types of search grounding to enable.\",\"items\":{\"enum\":[\"web_search\",\"image_search\",\"enterprise_web_search\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Setting this field enables web search. Only text results are returned.\",\"Setting this field enables image search. Image bytes are returned.\",\"Setting this field enables enterprise web search.\"]},\"type\":\"array\"},\"type\":{\"const\":\"google_search\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleSearchCallStep\":{\"description\":\"Google Search call step.\",\"example\":{\"arguments\":{\"queries\":[\"Who won the men's 100m in Paris 2024?\"]},\"id\":\"search_call_19201\",\"type\":\"google_search_call\"},\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/GoogleSearchCallStepArguments\",\"description\":\"Required. The arguments to pass to Google Search.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"search_type\":{\"description\":\"The type of search grounding enabled.\",\"enum\":[\"web_search\",\"image_search\",\"enterprise_web_search\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Setting this field enables web search. Only text results are returned.\",\"Setting this field enables image search. Image bytes are returned.\",\"Setting this field enables enterprise web search.\"]},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"google_search_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"GoogleSearchCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleSearchCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleSearchCallStepArguments\":{\"description\":\"The arguments to pass to Google Search.\",\"properties\":{\"queries\":{\"description\":\"Web search queries for the following-up web search.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleSearchCallArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"GoogleSearchCallArguments\"},\"GoogleSearchResultItem\":{\"description\":\"The result of the Google Search.\",\"properties\":{\"search_suggestions\":{\"description\":\"Web content snippet that can be embedded in a web page or an app webview.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleSearchResult\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"GoogleSearchResult\"},\"GoogleSearchResultStep\":{\"description\":\"Google Search result step.\",\"example\":{\"call_id\":\"search_call_19201\",\"result\":[{\"search_suggestions\":\"\\u003cdiv class=\\\"container\\\"\\u003e...\\u003c/div\\u003e\"}],\"type\":\"google_search_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"is_error\":{\"description\":\"Whether the Google Search resulted in an error.\",\"type\":\"boolean\"},\"result\":{\"description\":\"Required. The results of the Google Search.\",\"items\":{\"$ref\":\"#/$defs/GoogleSearchResultItem\"},\"type\":\"array\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"google_search_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"GoogleSearchResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleSearchResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"HarmCategory\":{\"enum\":[\"hate_speech\",\"dangerous_content\",\"harassment\",\"sexually_explicit\",\"civic_integrity\",\"image_hate\",\"image_dangerous_content\",\"image_harassment\",\"image_sexually_explicit\",\"jailbreak\"],\"type\":\"string\",\"x-google-enum-deprecated\":[false,false,false,false,true,false,false,false,false,false],\"x-google-enum-descriptions\":[\"Content that promotes violence or incites hatred against individuals or\\ngroups based on certain attributes.\",\"Content that promotes, facilitates, or enables dangerous activities.\",\"Abusive, threatening, or content intended to bully, torment, or ridicule.\",\"Content that contains sexually explicit material.\",\"Deprecated: Election filter is not longer supported.\\nThe harm category is civic integrity.\",\"Images that contain hate speech.\",\"Images that contain dangerous content.\",\"Images that contain harassment.\",\"Images that contain sexually explicit content.\",\"Prompts designed to bypass safety filters.\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"HarmCategory\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"HybridSearch\":{\"description\":\"Config for Hybrid Search.\",\"properties\":{\"alpha\":{\"description\":\"Optional. Alpha value controls the weight between dense and sparse vector search\\nresults.\",\"format\":\"float\",\"type\":\"number\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"ImageConfig\":{\"deprecated\":true,\"description\":\"The configuration for image interaction.\",\"properties\":{\"aspect_ratio\":{\"description\":\"The aspect ratio of the image to generate. Supported aspect ratios: 1:1,\\n2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9.\\n\\nIf not specified, the model will choose a default aspect ratio based on any\\nreference images provided.\",\"enum\":[\"1:1\",\"2:3\",\"3:2\",\"3:4\",\"4:3\",\"4:5\",\"5:4\",\"9:16\",\"16:9\",\"21:9\",\"1:8\",\"8:1\",\"1:4\",\"4:1\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"1:1 aspect ratio.\",\"2:3 aspect ratio.\",\"3:2 aspect ratio.\",\"3:4 aspect ratio.\",\"4:3 aspect ratio.\",\"4:5 aspect ratio.\",\"5:4 aspect ratio.\",\"9:16 aspect ratio.\",\"16:9 aspect ratio.\",\"21:9 aspect ratio.\",\"1:8 aspect ratio.\",\"8:1 aspect ratio.\",\"1:4 aspect ratio.\",\"4:1 aspect ratio.\"]},\"image_size\":{\"description\":\"Specifies the size of generated images. Supported values are `1K`, `2K`,\\n`4K`. If not specified, the model will use default value `1K`.\",\"enum\":[\"1K\",\"2K\",\"4K\",\"512\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"1K image size.\",\"2K image size.\",\"4K image size.\",\"512 image size.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"ImageContent\":{\"description\":\"An image content block.\",\"example\":{\"data\":\"BASE64_ENCODED_IMAGE\",\"mime_type\":\"image/png\",\"type\":\"image\"},\"properties\":{\"data\":{\"description\":\"The image content.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"mime_type\":{\"description\":\"The mime type of the image.\",\"enum\":[\"image/png\",\"image/jpeg\",\"image/webp\",\"image/heic\",\"image/heif\",\"image/gif\",\"image/bmp\",\"image/tiff\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"PNG image format\",\"JPEG image format\",\"WebP image format\",\"HEIC image format\",\"HEIF image format\",\"GIF image format\",\"BMP image format\",\"TIFF image format\"]},\"resolution\":{\"$ref\":\"#/$defs/MediaResolution\",\"description\":\"The resolution of the media.\"},\"type\":{\"const\":\"image\"},\"uri\":{\"description\":\"The URI of the image.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Image\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ImageContent\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ImageResponseFormat\":{\"description\":\"Configuration for image output format.\",\"example\":{\"aspect_ratio\":\"16:9\",\"image_size\":\"1K\",\"mime_type\":\"image/jpeg\",\"type\":\"image\"},\"properties\":{\"aspect_ratio\":{\"description\":\"The aspect ratio for the image output.\",\"enum\":[\"1:1\",\"2:3\",\"3:2\",\"3:4\",\"4:3\",\"4:5\",\"5:4\",\"9:16\",\"16:9\",\"21:9\",\"1:8\",\"8:1\",\"1:4\",\"4:1\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"1:1 aspect ratio.\",\"2:3 aspect ratio.\",\"3:2 aspect ratio.\",\"3:4 aspect ratio.\",\"4:3 aspect ratio.\",\"4:5 aspect ratio.\",\"5:4 aspect ratio.\",\"9:16 aspect ratio.\",\"16:9 aspect ratio.\",\"21:9 aspect ratio.\",\"1:8 aspect ratio.\",\"8:1 aspect ratio.\",\"1:4 aspect ratio.\",\"4:1 aspect ratio.\"]},\"delivery\":{\"description\":\"The delivery mode for the image output.\",\"enum\":[\"inline\",\"uri\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Image data is returned inline in the response.\",\"Image data is returned as a URI.\"]},\"image_size\":{\"description\":\"The size of the image output.\",\"enum\":[\"512\",\"1K\",\"2K\",\"4K\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"512px image size.\",\"1K image size.\",\"2K image size.\",\"4K image size.\"]},\"mime_type\":{\"description\":\"The MIME type of the image output.\",\"enum\":[\"image/jpeg\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"JPEG image format.\"]},\"type\":{\"const\":\"image\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Image Output\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ImageResponseFormat\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"InteractionsInput\":{\"description\":\"The input for the interaction.\",\"oneOf\":[{\"$ref\":\"#/$defs/Content\"},{\"items\":{\"$ref\":\"#/$defs/Step\"},\"title\":\"StepList\",\"type\":\"array\"},{\"items\":{\"$ref\":\"#/$defs/Content\"},\"title\":\"ContentList\",\"type\":\"array\"},{\"type\":\"string\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"McpServer\":{\"description\":\"A MCPServer is a server that can be called by the model to perform actions.\",\"properties\":{\"allowed_tools\":{\"description\":\"The allowed tools.\",\"items\":{\"$ref\":\"#/$defs/AllowedTools\"},\"type\":\"array\"},\"defer_loading\":{\"description\":\"If true, loading of tools on this MCP server is deferred.\",\"type\":\"boolean\"},\"headers\":{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"Optional: Fields for authentication headers, timeouts, etc., if needed.\",\"type\":\"object\",\"x-speakeasy-param-sensitive\":true},\"name\":{\"description\":\"The name of the MCPServer.\",\"type\":\"string\"},\"type\":{\"const\":\"mcp_server\"},\"url\":{\"description\":\"The full URL for the MCPServer endpoint.\\nExample: \\\"https://api.example.com/mcp\\\"\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"MCPServer\"},\"McpServerToolCallStep\":{\"description\":\"MCPServer tool call step.\",\"example\":{\"arguments\":{\"income\":120000,\"state\":\"CA\"},\"id\":\"mcp_call_29012\",\"name\":\"calculate_tax\",\"server_name\":\"financial_mcp_server\",\"type\":\"mcp_server_tool_call\"},\"properties\":{\"arguments\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Required. The JSON object of arguments for the function.\",\"type\":\"object\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"name\":{\"description\":\"Required. The name of the tool which was called.\",\"type\":\"string\"},\"server_name\":{\"description\":\"Required. The name of the used MCP server.\",\"type\":\"string\"},\"type\":{\"const\":\"mcp_server_tool_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"name\",\"server_name\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"McpServerToolCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"MCPServerToolCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"MCPServerToolCallStep\"},\"McpServerToolResultStep\":{\"description\":\"MCPServer tool result step.\",\"example\":{\"call_id\":\"mcp_call_29012\",\"name\":\"calculate_tax\",\"result\":{\"tax_due\":32400},\"server_name\":\"financial_mcp_server\",\"type\":\"mcp_server_tool_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"name\":{\"description\":\"Name of the tool which is called for this specific tool call.\",\"type\":\"string\"},\"result\":{\"description\":\"Required. The output from the MCP server call. Can be simple text or rich content.\",\"oneOf\":[{\"items\":{\"$ref\":\"#/$defs/FunctionResultSubContent\"},\"type\":\"array\"},{\"additionalProperties\":true,\"type\":\"object\"},{\"type\":\"string\"}]},\"server_name\":{\"description\":\"The name of the used MCP server.\",\"type\":\"string\"},\"type\":{\"const\":\"mcp_server_tool_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"McpServerToolResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"MCPServerToolResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"MCPServerToolResultStep\"},\"MediaProcessing\":{\"oneOf\":[{\"$ref\":\"#/$defs/StaticMediaProcessing\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"MediaResolution\":{\"enum\":[\"low\",\"medium\",\"high\",\"ultra_high\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Low resolution.\",\"Medium resolution.\",\"High resolution.\",\"Ultra high resolution.\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"MediaResolution\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ModelInteraction\":{\"description\":\"Interaction for generating the completion using models.\",\"properties\":{\"background\":{\"description\":\"Input only. Whether to run the model interaction in the background.\",\"type\":\"boolean\"},\"cached_content\":{\"deprecated\":true,\"description\":\"The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}\",\"type\":\"string\"},\"continuation_token\":{\"description\":\"Opaque token to resume a long decode. Output: set when status is\\nREQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest\\ntoken back unchanged when creating the next interaction to continue\\ndecoding.\",\"format\":\"byte\",\"type\":\"string\"},\"environment\":{\"description\":\"The environment configuration for the interaction. Can be an object\\nspecifying remote environment sources or a string referencing an existing\\nenvironment ID.\",\"oneOf\":[{\"$ref\":\"#/$defs/EnvironmentConfig\"},{\"type\":\"string\"}]},\"generation_config\":{\"$ref\":\"#/$defs/GenerationConfig\",\"description\":\"Input only. Configuration parameters for the model interaction.\"},\"input\":{\"$ref\":\"#/$defs/InteractionsInput\"},\"labels\":{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"The labels with user-defined metadata for the request.\\n\\nLabel keys and values can be no longer than 63 characters\\n(Unicode codepoints) and can only contain lowercase letters, numeric\\ncharacters, underscores, and dashes. International characters are allowed.\\nLabel values are optional. Label keys must start with a letter.\",\"type\":\"object\"},\"model\":{\"$ref\":\"#/$defs/ModelOption\",\"description\":\"The name of the `Model` used for generating the interaction.\"},\"previous_interaction_id\":{\"description\":\"The ID of the previous interaction, if any.\",\"type\":\"string\"},\"response_format\":{\"description\":\"Enforces that the generated response is a JSON object that complies with\\nthe JSON schema specified in this field.\",\"oneOf\":[{\"$ref\":\"#/$defs/ResponseFormat\"},{\"items\":{\"$ref\":\"#/$defs/ResponseFormat\"},\"title\":\"ResponseFormatList\",\"type\":\"array\"}]},\"response_mime_type\":{\"deprecated\":true,\"description\":\"The mime type of the response. This is required if response_format is set.\",\"type\":\"string\"},\"response_modalities\":{\"deprecated\":true,\"description\":\"The requested modalities of the response (TEXT, IMAGE, AUDIO).\",\"items\":{\"$ref\":\"#/$defs/ResponseModality\"},\"type\":\"array\"},\"safety_settings\":{\"description\":\"Safety settings for the interaction.\",\"items\":{\"$ref\":\"#/$defs/SafetySetting\"},\"type\":\"array\"},\"service_tier\":{\"$ref\":\"#/$defs/ServiceTier\",\"description\":\"The service tier for the interaction.\"},\"store\":{\"description\":\"Input only. Whether to store the response and request for later retrieval.\",\"type\":\"boolean\"},\"stream\":{\"default\":true,\"description\":\"Input only. Whether the interaction is streamed as server-sent events. Defaults to true; set false to receive one complete interaction.\",\"type\":\"boolean\"},\"system_instruction\":{\"description\":\"System instruction for the interaction.\",\"type\":\"string\"},\"tools\":{\"description\":\"A list of tool declarations the model may call during interaction.\",\"items\":{\"$ref\":\"#/$defs/Tool\"},\"type\":\"array\"},\"webhook_config\":{\"$ref\":\"#/$defs/WebhookConfig\",\"description\":\"Optional. Webhook configuration for receiving notifications when the\\ninteraction completes.\"\x7d\x7d,\"required\":[\"model\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"CreateModelInteractionParamsNonStreaming\",\"representation\":\"input\"},{\"group\":\"interactions\",\"name\":\"CreateModelInteractionParamsStreaming\",\"representation\":\"input\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"CreateModelInteraction\"},\"ModelOption\":{\"default\":\"gemini-4-hydrogen\",\"description\":\"The model that will complete your prompt.\\\\n\\\\nSee [models](https://aistudio.google.com/docs/models) for additional details.\",\"enum\":[\"gemma-4-26b-a4b-it\",\"gemma-4-31b-it\",\"gemini-flash-latest\",\"gemini-flash-lite-latest\",\"gemini-pro-latest\",\"gemini-2.5-flash\",\"gemini-2.5-pro\",\"gemini-2.5-flash-lite\",\"gemini-3.5-flash-lite\",\"gemini-2.5-flash-image\",\"gemini-3-flash-preview\",\"gemini-3.1-pro-preview\",\"gemini-3.1-pro-preview-customtools\",\"gemini-3.1-flash-lite\",\"gemini-3.1-flash-lite-image\",\"gemini-3-pro-image\",\"nano-banana-pro-preview\",\"gemini-3.1-flash-image\",\"gemini-nano-banana-2.1\",\"gemini-3.1-flash-tts-preview\",\"gemini-3.5-flash\",\"gemini-3.6-flash\",\"gemini-3.7-flash\",\"gemini-3.8-flash\",\"gemini-4-argon\",\"gemini-4-carbon\",\"gemini-4-hydrogen\",\"gemini-4-neon\",\"gemini-3.8-flash-tts\",\"gemini-3.8-flash-lite-tts\",\"gemini-3.5-transcribe\",\"lyria-3-clip-preview\",\"lyria-3-pro-preview\",\"gemini-robotics-er-1.6-preview\",\"gemini-robotics-er-2-preview\",\"lyria-3.5\",\"gemini-omni-1.2-flash\",\"gemini-omni-1.1-flash\",\"gemini-omni-flash-preview\"],\"title\":\"Model\",\"type\":\"string\",\"x-speakeasy-cli-catalog\":{\"command\":\"models\",\"default\":\"gemini-4-hydrogen\",\"description\":\"Bare \\\"models\\\" prints the curated model list built into this CLI (offline, no request). The default model is used by \\\"agent run\\\" whenever the request body names neither \\\"model\\\" nor \\\"agent\\\". Use \\\"models list\\\" and \\\"models get\\\" for the live API's models and metadata.\",\"summary\":\"Show the curated offline model catalog; list/get query the live API\"},\"x-speakeasy-enum-descriptions\":[\"Gemma 4 26B A4B IT\",\"Gemma 4 31B IT\",\"Latest release of Gemini Flash\",\"Latest release of Gemini Flash-Lite\",\"Latest release of Gemini Pro\",\"Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets.\",\"Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks.\",\"Our smallest and most cost effective model, built for at scale usage.\",\"Gemini 3.5 Flash-Lite - Our fastest, most cost-effective 3.5 model for high-throughput execution.\",\"Our native image generation model, optimized for speed, flexibility, and contextual understanding. Text input and output is priced the same as 2.5 Flash.\",\"Our most intelligent model built for speed, combining frontier intelligence with superior search and grounding.\",\"Our latest SOTA reasoning model with unprecedented depth and nuance, and powerful multimodal understanding and coding capabilities.\",\"Gemini 3.1 Pro Preview optimized for custom tool usage\",\"Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processing.\",\"Gemini 3.1 Flash Lite Image.\",\"Gemini 3 Pro Image\",\"Gemini 3 Pro Image Preview\",\"Gemini 3.1 Flash Image.\",\"Gemini Nano Banana 2.1.\",\"Gemini 3.1 Flash TTS: Powerful, low-latency speech generation. Enjoy natural outputs, steerable prompts, and new expressive audio tags for precise narration control.\",\"Gemini 3.5 Flash - Our earlier Flash model, built for speed and foundational performance across routine, high-throughput workloads.\",\"Gemini 3.6 Flash - Our previous generation Flash model, balancing speed and multimodal capabilities across general agentic and everyday tasks.\",\"Gemini 3.7 Flash - Our high-speed, efficient Flash model built for everyday coding, agentic tool use, and reliable multi-step execution.\",\"Gemini 3.8 Flash - Our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows.\",\"Gemini 4 Argon - Our new frontier model, built to solve the hardest problems with depth and precision across real-world software engineering and knowledge work.\",\"Gemini 4 Carbon - Our most capable reasoning model, built for sustained agentic coding, multimodal knowledge work, scientific discovery, and cybersecurity defense.\",\"Gemini 4 Hydrogen - A model with frontier-level intelligence, built for fast, dependable execution across coding, agentic workflows, and multimodal knowledge work.\",\"Gemini 4 Neon - Frontier-level intelligence with fast end-to-end task completion across complex software engineering, analytical, and science workflows.\",\"Gemini 3.8 Flash TTS - Flagship TTS model for Voice Design and dual-speaker screenplay control. Prompt custom vocal personas, direct line-by-line delivery, and add vocal bursts.\",\"Gemini 3.8 Flash Lite TTS - High-speed and cost-efficient, ideal for rapid dubbing, media localization, and high-throughput voice agents. Direct replacement for gemini-3.1-flash-tts-preview.\",\"Gemini 3.5 Transcribe - Low-latency speech-to-text model with utterance-based language detection, speaker diarization, word-level timestamps, and custom vocabulary biasing.\",\"Our low-latency, music generation model optimized for high-fidelity audio clips and precise rhythmic control.\",\"Our advanced, full-song generative model with deep compositional understanding, optimized for precise structural control and complex transitions across diverse musical styles.\",\"Gemini Robotics-ER 1.6 Preview\",\"Gemini Robotics Embodied Reasoning 2 Preview\",\"Our flagship music generation model, optimized for full-length songs with complex structural coherence.\",\"Gemini Omni 1.2 Flash - Our latest multimodal model for fast, conversational video generation, editing, and cinematic control.\",\"Our high-performance multimodal model designed for fast, conversational video generation, editing, and cinematic control.\",\"Preview release of our multimodal model for conversational video generation, editing, and cinematic control.\"],\"x-speakeasy-enum-format\":\"union\",\"x-speakeasy-enum-groups\":{\"gemini-2.5-flash\":\"Gemini\",\"gemini-2.5-flash-image\":\"Image\",\"gemini-2.5-flash-lite\":\"Gemini\",\"gemini-2.5-pro\":\"Gemini\",\"gemini-3-flash-preview\":\"Gemini\",\"gemini-3-pro-image\":\"Image\",\"gemini-3.1-flash-image\":\"Image\",\"gemini-3.1-flash-lite\":\"Gemini\",\"gemini-3.1-flash-lite-image\":\"Image\",\"gemini-3.1-flash-tts-preview\":\"Speech\",\"gemini-3.1-pro-preview\":\"Gemini\",\"gemini-3.1-pro-preview-customtools\":\"Gemini\",\"gemini-3.5-flash\":\"Gemini\",\"gemini-3.5-flash-lite\":\"Gemini\",\"gemini-3.5-transcribe\":\"Speech\",\"gemini-3.6-flash\":\"Gemini\",\"gemini-3.7-flash\":\"Gemini\",\"gemini-3.8-flash\":\"Gemini\",\"gemini-3.8-flash-lite-tts\":\"Speech\",\"gemini-3.8-flash-tts\":\"Speech\",\"gemini-4-argon\":\"Gemini\",\"gemini-4-carbon\":\"Gemini\",\"gemini-4-hydrogen\":\"Gemini\",\"gemini-4-neon\":\"Gemini\",\"gemini-flash-latest\":\"Gemini\",\"gemini-flash-lite-latest\":\"Gemini\",\"gemini-nano-banana-2.1\":\"Image\",\"gemini-omni-1.1-flash\":\"Video\",\"gemini-omni-1.2-flash\":\"Video\",\"gemini-omni-flash-preview\":\"Video\",\"gemini-pro-latest\":\"Gemini\",\"gemini-robotics-er-1.6-preview\":\"Robotics\",\"gemini-robotics-er-2-preview\":\"Robotics\",\"gemma-4-26b-a4b-it\":\"Gemma\",\"gemma-4-31b-it\":\"Gemma\",\"lyria-3-clip-preview\":\"Music\",\"lyria-3-pro-preview\":\"Music\",\"lyria-3.5\":\"Music\",\"nano-banana-pro-preview\":\"Image\"},\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Model\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"Model\",\"x-speakeasy-unknown-values\":\"allow\"},\"ModelOutputStep\":{\"description\":\"Output generated by the model.\",\"example\":{\"content\":[{\"text\":\"The capital of France is Paris.\",\"type\":\"text\"}],\"type\":\"model_output\"},\"properties\":{\"content\":{\"items\":{\"$ref\":\"#/$defs/Content\"},\"type\":\"array\"},\"error\":{\"$ref\":\"#/$defs/Status\",\"deprecated\":true,\"description\":\"The error result of the operation in case of failure or cancellation.\"},\"type\":{\"const\":\"model_output\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"ModelOutputStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ModelOutputStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"PageProcessingOptions\":{\"description\":\"Processing options for paginated documents, such as PDFs, Office\\ndocuments, and presentations.\",\"properties\":{\"content_layers\":{\"description\":\"Optional. Content layers to extract from a paginated document.\",\"items\":{\"enum\":[\"page_image\",\"page_text\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"A rendered image of the page.\",\"The text of the page.\"]},\"type\":\"array\"},\"end_page\":{\"description\":\"Optional. 1-indexed end page, inclusive. Must be \\u003e= `start_page` if\\n`start_page` is set.\",\"format\":\"int32\",\"type\":\"integer\"},\"start_page\":{\"description\":\"Optional. 1-indexed start page, inclusive.\",\"format\":\"int32\",\"type\":\"integer\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"PageProcessingOptions\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ParallelAISearchConfig\":{\"description\":\"Used to specify configuration for ParallelAISearch.\",\"properties\":{\"api_key\":{\"description\":\"Optional. The API key for ParallelAiSearch.\",\"type\":\"string\",\"x-speakeasy-param-sensitive\":true},\"custom_config\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Optional. Custom configs for ParallelAiSearch.\",\"type\":\"object\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"PlaceCitation\":{\"description\":\"A place citation annotation.\",\"properties\":{\"end_index\":{\"description\":\"End of the attributed segment, exclusive.\",\"format\":\"int32\",\"type\":\"integer\"},\"name\":{\"description\":\"Title of the place.\",\"type\":\"string\"},\"place_id\":{\"description\":\"The ID of the place, in `places/{place_id}` format.\",\"type\":\"string\"},\"review_snippets\":{\"description\":\"Snippets of reviews that are used to generate answers about the\\nfeatures of a given place in Google Maps.\",\"items\":{\"$ref\":\"#/$defs/ReviewSnippet\"},\"type\":\"array\"},\"start_index\":{\"description\":\"Start of segment of the response that is attributed to this source.\\n\\nIndex indicates the start of the segment, measured in bytes.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"const\":\"place_citation\"},\"url\":{\"description\":\"URI reference of the place.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"PlaceCitation\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ProcessingCallStep\":{\"description\":\"A server-initiated processing step for media analysis (e.g. video\\nunderstanding).\",\"properties\":{\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"processing_call\"\x7d\x7d,\"required\":[\"id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ProcessingCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ProcessingResultStep\":{\"description\":\"The result of a server-initiated media processing step.\",\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"processing_result\"\x7d\x7d,\"required\":[\"call_id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ProcessingResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"RagResource\":{\"description\":\"The definition of the Rag resource.\",\"properties\":{\"rag_corpus\":{\"description\":\"Optional. RagCorpora resource name.\",\"type\":\"string\"},\"rag_file_ids\":{\"description\":\"Optional. rag_file_id. The files should be in the same rag_corpus set in\\nrag_corpus field.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"RagRetrievalConfig\":{\"description\":\"Specifies the context retrieval config.\",\"properties\":{\"filter\":{\"$ref\":\"#/$defs/Filter\",\"description\":\"Optional. Config for filters.\"},\"hybrid_search\":{\"$ref\":\"#/$defs/HybridSearch\",\"description\":\"Optional. Config for Hybrid Search.\"},\"ranking\":{\"$ref\":\"#/$defs/Ranking\",\"description\":\"Optional. Config for ranking and reranking.\"},\"top_k\":{\"description\":\"Optional. The number of contexts to retrieve.\",\"format\":\"int32\",\"type\":\"integer\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"RagStoreConfig\":{\"description\":\"Use to specify configuration for RAG Store.\",\"properties\":{\"rag_resources\":{\"description\":\"Optional. The representation of the rag source.\",\"items\":{\"$ref\":\"#/$defs/RagResource\"},\"type\":\"array\"},\"rag_retrieval_config\":{\"$ref\":\"#/$defs/RagRetrievalConfig\",\"description\":\"Optional. The retrieval config for the Rag query.\"},\"similarity_top_k\":{\"deprecated\":true,\"description\":\"Optional. Number of top k results to return from the selected corpora.\",\"format\":\"int32\",\"type\":\"integer\"},\"vector_distance_threshold\":{\"deprecated\":true,\"description\":\"Optional. Only return results with vector distance smaller than the threshold.\",\"format\":\"double\",\"type\":\"number\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"RankService\":{\"description\":\"Config for Rank Service.\",\"properties\":{\"model_name\":{\"description\":\"Optional. The model name of the rank service.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Ranking\":{\"description\":\"Config for ranking and reranking.\",\"properties\":{\"model_name\":{\"description\":\"Optional. The model name of the rank service.\",\"type\":\"string\"},\"rank_service\":{\"$ref\":\"#/$defs/RankService\",\"description\":\"Config for Rank Service.\"},\"ranking_config\":{\"const\":\"rank_service\"\x7d\x7d,\"required\":[\"ranking_config\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"ResponseFormat\":{\"oneOf\":[{\"$ref\":\"#/$defs/AudioResponseFormat\"},{\"$ref\":\"#/$defs/ImageResponseFormat\"},{\"$ref\":\"#/$defs/TextResponseFormat\"},{\"$ref\":\"#/$defs/VideoResponseFormat\"},{\"additionalProperties\":true,\"type\":\"object\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ResponseModality\":{\"enum\":[\"text\",\"image\",\"audio\",\"video\",\"document\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Indicates the model should return text.\",\"Indicates the model should return images.\",\"Indicates the model should return audio.\",\"Indicates the model should return video.\",\"Indicates the model should return documents.\"],\"x-speakeasy-model-namespace\":\"interactions\"},\"Retrieval\":{\"description\":\"A tool that can be used by the model to retrieve files.\",\"properties\":{\"exa_ai_search_config\":{\"$ref\":\"#/$defs/ExaAISearchConfig\",\"description\":\"Used to specify configuration for ExaAISearch.\"},\"parallel_ai_search_config\":{\"$ref\":\"#/$defs/ParallelAISearchConfig\",\"description\":\"Used to specify configuration for ParallelAISearch.\"},\"rag_store_config\":{\"$ref\":\"#/$defs/RagStoreConfig\",\"description\":\"Used to specify configuration for RagStore.\"},\"retrieval_types\":{\"description\":\"The types of file retrieval to enable.\",\"items\":{\"enum\":[\"vertex_ai_search\",\"rag_store\",\"exa_ai_search\",\"parallel_ai_search\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"\",\"\",\"\",\"\"]},\"type\":\"array\"},\"type\":{\"const\":\"retrieval\"},\"vertex_ai_search_config\":{\"$ref\":\"#/$defs/VertexAISearchConfig\",\"description\":\"Used to specify configuration for VertexAISearch.\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"RetrievalCallStep\":{\"description\":\"Retrieval call step.\\nUsed by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\\netc. RetrievalType decides which tool is used.\",\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/RetrievalStepArguments\",\"description\":\"Required. The arguments to pass to the retrieval tool.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"retrieval_type\":{\"description\":\"The type of retrieval tools.\",\"enum\":[\"vertex_ai_search\",\"rag_store\",\"exa_ai_search\",\"parallel_ai_search\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"\",\"\",\"\",\"\"]},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"retrieval_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"RetrievalCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"RetrievalResultStep\":{\"description\":\"Vertex Retrieval result step.\\nUsed by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\\netc.\",\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"is_error\":{\"description\":\"Whether the retrieval resulted in an error.\",\"type\":\"boolean\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"retrieval_result\"\x7d\x7d,\"required\":[\"call_id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"RetrievalResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"RetrievalStepArguments\":{\"description\":\"The arguments to pass to Retrieval tools.\",\"properties\":{\"queries\":{\"description\":\"Queries for Retrieval information.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"RetrievalCallArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"RetrievalCallArguments\"},\"ReviewSnippet\":{\"description\":\"Encapsulates a snippet of a user review that answers a question about\\nthe features of a specific place in Google Maps.\",\"properties\":{\"review_id\":{\"description\":\"The ID of the review snippet.\",\"type\":\"string\"},\"title\":{\"description\":\"Title of the review.\",\"type\":\"string\"},\"url\":{\"description\":\"A link that corresponds to the user review on Google Maps.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"SafetySetting\":{\"description\":\"A safety setting that affects the safety-blocking behavior.\\n\\nA SafetySetting consists of a\\nharm category and a\\nthreshold for that\\ncategory.\",\"properties\":{\"method\":{\"description\":\"Optional. The method for blocking content. If not specified, the default\\nbehavior is to use the probability score.\",\"enum\":[\"severity\",\"probability\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"The harm block method uses both probability and severity scores.\",\"The harm block method uses the probability score.\"]},\"threshold\":{\"description\":\"Required. The threshold for blocking content. If the harm probability\\nexceeds this threshold, the content will be blocked.\",\"enum\":[\"block_low_and_above\",\"block_medium_and_above\",\"block_only_high\",\"block_none\",\"off\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Block content with a low harm probability or higher.\",\"Block content with a medium harm probability or higher.\",\"Block content with a high harm probability.\",\"Do not block any content, regardless of its harm probability.\",\"Turn off the safety filter entirely.\"]},\"type\":{\"$ref\":\"#/$defs/HarmCategory\",\"description\":\"Required. The type of harm category to be blocked.\"\x7d\x7d,\"required\":[\"threshold\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"SafetySetting\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ServiceTier\":{\"enum\":[\"flex\",\"standard\",\"priority\",\"deferred\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Flex service tier.\",\"Standard service tier.\",\"Priority service tier.\",\"Deferred service tier.\"],\"x-speakeasy-model-namespace\":\"interactions\"},\"SessionConfig\":{\"description\":\"The configuration of CodeMender sessions.\",\"properties\":{\"max_rounds\":{\"description\":\"The maximum number of interaction rounds the agent is allowed to perform\\nbefore reaching a timeout.\",\"format\":\"int32\",\"type\":\"integer\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"SmartTranscriptionMode\":{\"description\":\"Configuration for smart transcription mode.\",\"properties\":{\"source_text\":{\"description\":\"The source text to be edited or rewritten via voice instructions.\\nWhen provided, the model performs voice-driven editing and outputs the\\nfinalized replacement text.\",\"type\":\"string\"},\"type\":{\"const\":\"smart\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Source\":{\"description\":\"A source to be mounted into the environment.\",\"properties\":{\"content\":{\"description\":\"The inline content if `type` is `INLINE`.\",\"type\":\"string\"},\"encoding\":{\"description\":\"Optional encoding for inline content (e.g. `base64`).\",\"type\":\"string\"},\"source\":{\"description\":\"The source of the environment.\\nFor Cloud Storage, this is the Cloud Storage path.\\nFor GitHub, this is the GitHub path.\",\"type\":\"string\"},\"target\":{\"description\":\"Where the source should appear in the environment.\",\"type\":\"string\"},\"type\":{\"enum\":[\"gcs\",\"inline\",\"repository\",\"skill_registry\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"A Cloud Storage bucket.\",\"Inline content.\",\"A generic repository. The protocol prefix in the source URL\\nidentifies the provider (e.g., github://, gcs://).\",\"A skill resource from the Skill Registry Service.\\nSkill: projects/{project}/locations/{location}/skills/{skill}\\nSkillRevision:\\nprojects/{project}/locations/{location}/skills/{skill}/revisions/{revision}\\nSupport mounting all skills under a project:\\nprojects/{project}/locations/{location}/skills.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"SpeakerConfig\":{\"description\":\"Configuration for multi-speaker and speech generation.\",\"properties\":{\"speakers\":{\"description\":\"Individual speaker configurations.\",\"items\":{\"$ref\":\"#/$defs/SpeechConfig\"},\"type\":\"array\"},\"text_normalization\":{\"description\":\"Controls text normalization before speech synthesis.\",\"enum\":[\"auto\",\"enabled\",\"disabled\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Automatically determines whether to apply text normalization based on\\nthe model and speech mode.\",\"Enables text normalization for numbers, currencies, dates, and units.\",\"Disables text normalization for pre-normalized or phonetic inputs.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"SpeechAnnotation\":{\"description\":\"Speech annotation for text content.\",\"properties\":{\"end_index\":{\"description\":\"End of the attributed segment, exclusive.\",\"format\":\"int32\",\"type\":\"integer\"},\"speaker\":{\"description\":\"The speaker to associate with this turn.\",\"type\":\"string\"},\"start_index\":{\"description\":\"Start of segment of the response that is attributed to this source.\\n\\nIndex indicates the start of the segment, measured in bytes.\",\"format\":\"int32\",\"type\":\"integer\"},\"style\":{\"description\":\"Style instruction for the speech synthesis.\",\"type\":\"string\"},\"type\":{\"const\":\"speech_metadata\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"SpeechConfig\":{\"description\":\"The configuration for speech interaction.\",\"properties\":{\"language\":{\"description\":\"The language of the speech.\",\"type\":\"string\"},\"speaker\":{\"description\":\"The speaker's name, it should match the speaker name given in the prompt.\",\"type\":\"string\"},\"voice\":{\"description\":\"The voice of the speaker.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"SpeechConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"SpreadsheetProcessingOptions\":{\"description\":\"Processing options for spreadsheets.\",\"properties\":{\"content_layers\":{\"description\":\"Optional. Content layers to extract from a spreadsheet.\",\"items\":{\"enum\":[\"visual\",\"data\",\"formulas\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"A rendered image of the sheet.\",\"Cell values, merges, and formats.\",\"Formula expressions and their computed results.\"]},\"type\":\"array\"},\"sheet_index\":{\"description\":\"Optional. The 1-indexed index of the sheet to extract, in workbook\\norder. If not set, all sheets are extracted.\",\"format\":\"int32\",\"type\":\"integer\"},\"visible_cells\":{\"description\":\"Optional. The range of cells to extract, in A1 notation (e.g. \\\"A1:D10\\\").\\nIf not set, the full occupied area of the sheet is used.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"SpreadsheetProcessingOptions\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"StaticMediaProcessing\":{\"properties\":{\"content_layers\":{\"description\":\"Optional. Content layers to extract from the video.\",\"items\":{\"enum\":[\"frames\",\"audio\",\"transcript\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Frames of the video.\",\"Audio of the video.\",\"Transcript of the audio track.\"]},\"type\":\"array\"},\"end_offset\":{\"description\":\"Optional. Segment end time. Specified as a decimal number of seconds followed\\nby an 's' suffix, e.g., \\\"30s\\\". Must be non-negative and greater than\\n`start_offset` if `start_offset` is set.\",\"format\":\"google-duration\",\"type\":\"string\"},\"fps\":{\"description\":\"Optional. Video frame-rate sampling density.\",\"format\":\"double\",\"type\":\"number\"},\"start_offset\":{\"description\":\"Optional. Segment start time. Specified as a decimal number of seconds followed\\nby an 's' suffix, e.g., \\\"10.5s\\\". Must be non-negative.\",\"format\":\"google-duration\",\"type\":\"string\"},\"type\":{\"const\":\"static\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Status\":{\"description\":\"The `Status` type defines a logical error model that is suitable for\\ndifferent programming environments, including REST APIs and RPC APIs. It is\\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\\nthree pieces of data: error code, error message, and error details.\\n\\nYou can find out more about this error model and how to work with it in the\\n[API Design Guide](https://cloud.google.com/apis/design/errors).\",\"properties\":{\"code\":{\"description\":\"The status code, which should be an enum value of google.rpc.Code.\",\"format\":\"int32\",\"type\":\"integer\"},\"details\":{\"description\":\"A list of messages that carry the error details. There is a common set of\\nmessage types for APIs to use.\",\"items\":{\"additionalProperties\":{\"description\":\"Properties of the object. Contains field @type with type URL.\"},\"type\":\"object\"},\"type\":\"array\"},\"message\":{\"description\":\"A developer-facing error message, which should be in English. Any\\nuser-facing error message should be localized and sent in the\\ngoogle.rpc.Status.details field, or localized by the client.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Step\":{\"description\":\"A step in the interaction.\",\"oneOf\":[{\"$ref\":\"#/$defs/CodeExecutionCallStep\"},{\"$ref\":\"#/$defs/CodeExecutionResultStep\"},{\"$ref\":\"#/$defs/FileSearchCallStep\"},{\"$ref\":\"#/$defs/FileSearchResultStep\"},{\"$ref\":\"#/$defs/FunctionCallStep\"},{\"$ref\":\"#/$defs/FunctionResultStep\"},{\"$ref\":\"#/$defs/GoogleMapsCallStep\"},{\"$ref\":\"#/$defs/GoogleMapsResultStep\"},{\"$ref\":\"#/$defs/GoogleSearchCallStep\"},{\"$ref\":\"#/$defs/GoogleSearchResultStep\"},{\"$ref\":\"#/$defs/McpServerToolCallStep\"},{\"$ref\":\"#/$defs/McpServerToolResultStep\"},{\"$ref\":\"#/$defs/ModelOutputStep\"},{\"$ref\":\"#/$defs/ProcessingCallStep\"},{\"$ref\":\"#/$defs/ProcessingResultStep\"},{\"$ref\":\"#/$defs/RetrievalCallStep\"},{\"$ref\":\"#/$defs/RetrievalResultStep\"},{\"$ref\":\"#/$defs/ThoughtStep\"},{\"$ref\":\"#/$defs/ToolSearchCallStep\"},{\"$ref\":\"#/$defs/ToolSearchResultStep\"},{\"$ref\":\"#/$defs/UrlContextCallStep\"},{\"$ref\":\"#/$defs/UrlContextResultStep\"},{\"$ref\":\"#/$defs/UserInputStep\"}],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Step\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"TextContent\":{\"description\":\"A text content block.\",\"example\":{\"text\":\"Hello, how are you?\",\"type\":\"text\"},\"properties\":{\"annotations\":{\"description\":\"Citation information for model-generated content.\",\"items\":{\"$ref\":\"#/$defs/Annotation\"},\"type\":\"array\"},\"text\":{\"description\":\"Required. The text content.\",\"type\":\"string\"},\"type\":{\"const\":\"text\"\x7d\x7d,\"required\":[\"text\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Text\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"TextContent\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"TextResponseFormat\":{\"description\":\"Configuration for text output format.\",\"example\":{\"mime_type\":\"application/json\",\"schema\":{\"properties\":{\"ingredients\":{\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"recipe_name\":{\"type\":\"string\"\x7d\x7d,\"required\":[\"ingredients\",\"recipe_name\"],\"type\":\"object\"},\"type\":\"text\"},\"properties\":{\"mime_type\":{\"description\":\"The MIME type of the text output.\",\"enum\":[\"application/json\",\"text/plain\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"JSON output format.\",\"Plain text output format.\"]},\"schema\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"The JSON schema that the output should conform to. Only applicable when\\nmime_type is application/json.\\n\\nSupports a subset of JSON Schema. `minLength`, `maxLength`,\\n`minProperties`, `maxProperties`, `uniqueItems`, `contains`,\\n`minContains`, and `maxContains` are ignored and not enforced; validate\\nthese in your application. `minItems` and `maxItems` are enforced. Schemas\\nthat are too complex to enforce (for example, large `maxItems` on nested\\narrays) return a 400 INVALID_ARGUMENT error.\",\"type\":\"object\"},\"type\":{\"const\":\"text\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Text Output (JSON Schema)\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"TextResponseFormat\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ThinkingLevel\":{\"enum\":[\"minimal\",\"low\",\"medium\",\"high\",\"xhigh\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Little to no thinking.\",\"Low thinking level.\",\"Medium thinking level.\",\"High thinking level.\",\"Extra high thinking level, above `high`.\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ThinkingLevel\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ThinkingSummaries\":{\"enum\":[\"auto\",\"none\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Auto thinking summaries.\",\"No thinking summaries.\"],\"x-speakeasy-model-namespace\":\"interactions\"},\"ThoughtContent\":{\"oneOf\":[{\"$ref\":\"#/$defs/ImageContent\"},{\"$ref\":\"#/$defs/TextContent\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"ThoughtSummaryContent\"},\"ThoughtStep\":{\"description\":\"A thought step.\",\"example\":{\"signature\":\"thought_sig_abcd1234\",\"summary\":[{\"text\":\"The model is searching Google for the capital of France.\",\"type\":\"text\"}],\"type\":\"thought\"},\"properties\":{\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"summary\":{\"description\":\"A summary of the thought.\",\"items\":{\"$ref\":\"#/$defs/ThoughtContent\"},\"type\":\"array\"},\"type\":{\"const\":\"thought\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"ThoughtStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ThoughtStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"Tool\":{\"description\":\"A tool that can be used by the model.\",\"oneOf\":[{\"$ref\":\"#/$defs/CodeExecution\"},{\"$ref\":\"#/$defs/ComputerUse\"},{\"$ref\":\"#/$defs/FileSearch\"},{\"$ref\":\"#/$defs/Function\"},{\"$ref\":\"#/$defs/GoogleMaps\"},{\"$ref\":\"#/$defs/GoogleSearch\"},{\"$ref\":\"#/$defs/McpServer\"},{\"$ref\":\"#/$defs/Retrieval\"},{\"$ref\":\"#/$defs/ToolSearch\"},{\"$ref\":\"#/$defs/UrlContext\"}],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Tool\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolChoiceConfig\":{\"description\":\"The tool choice configuration containing allowed tools.\",\"example\":{\"allowed_tools\":{\"mode\":\"any\",\"tools\":[\"my_tool\"]\x7d\x7d,\"properties\":{\"allowed_tools\":{\"$ref\":\"#/$defs/AllowedTools\",\"description\":\"The allowed tools.\"\x7d\x7d,\"type\":\"object\",\"x-example-summaries\":[\"Allowed Tools\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ToolChoiceConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolChoiceType\":{\"enum\":[\"auto\",\"any\",\"none\",\"validated\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Auto tool choice.\",\"Any tool choice.\",\"No tool choice.\",\"Validated tool choice.\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ToolChoiceType\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolSearch\":{\"description\":\"A tool that allows the model to dynamically search for and load tools into\\nthe model’s context on demand. This allows clients to avoid loading all tool\\ndefinitions up front and may help reduce overall token usage and cost.\",\"properties\":{\"description\":{\"description\":\"A description of the function. To be set only for client-side execution.\",\"type\":\"string\"},\"execution\":{\"description\":\"The execution mode of the tool search.\",\"enum\":[\"server\",\"client\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Server-side execution mode. Default.\",\"Client-side execution mode.\"]},\"name\":{\"description\":\"The name of the function. To be set only for client-side execution.\",\"type\":\"string\"},\"parameters\":{\"description\":\"The JSON Schema for the function's parameters. To be set only for\\nclient-side execution.\"},\"type\":{\"const\":\"tool_search\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolSearchCallStep\":{\"description\":\"Tool search call step.\",\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/ToolSearchCallStepArguments\",\"description\":\"Required. The arguments for tool search.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"tool_search_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ToolSearchCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolSearchCallStepArguments\":{\"properties\":{\"function_names\":{\"description\":\"List of function names to load explicitly.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ToolSearchCallStepArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolSearchResultStep\":{\"description\":\"Tool search result step.\",\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"result\":{\"description\":\"The retrieved function definitions.\",\"items\":{\"$ref\":\"#/$defs/Function\"},\"type\":\"array\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"tool_search_result\"\x7d\x7d,\"required\":[\"call_id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ToolSearchResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"TranscriptionConfig\":{\"description\":\"Configuration for speech recognition (transcription).\",\"properties\":{\"adaptation_phrases\":{\"deprecated\":true,\"description\":\"Optional. A list of phrases to bias the ASR model towards.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"custom_vocabulary\":{\"description\":\"Optional. A list of custom vocabulary phrases to bias the speech recognition model\\ntoward recognizing specific terms.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"diarization_mode\":{\"deprecated\":true,\"description\":\"Optional. Configures speaker diarization. Supported values: \\\"speaker\\\".\",\"type\":\"string\"},\"language_codes\":{\"description\":\"Optional. BCP-47 language codes providing hints about the languages present in the\\naudio. If omitted or empty, defaults to automatic language detection.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"language_hints\":{\"deprecated\":true,\"description\":\"Deprecated: use language_codes. BCP-47 language codes providing hints about the languages present in the audio.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"mode\":{\"description\":\"Discriminated transcription mode options or enum.\",\"oneOf\":[{\"$ref\":\"#/$defs/TranscriptionMode\"},{\"enum\":[\"verbatim\",\"smart\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Verbatim transcription mode.\",\"Smart transcription mode.\"]}],\"title\":\"TranscriptionConfigMode\"},\"timestamp_granularities\":{\"deprecated\":true,\"description\":\"Optional. The granularity of timestamps to include in the transcription output.\\nSupported values: \\\"word\\\". If empty, no timestamps are generated.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"TranscriptionConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"TranscriptionMode\":{\"description\":\"Configuration for transcription mode.\",\"oneOf\":[{\"$ref\":\"#/$defs/SmartTranscriptionMode\"},{\"$ref\":\"#/$defs/VerbatimTranscriptionMode\"}],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"TranscriptionMode\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"UrlCitation\":{\"description\":\"A URL citation annotation.\",\"properties\":{\"end_index\":{\"description\":\"End of the attributed segment, exclusive.\",\"format\":\"int32\",\"type\":\"integer\"},\"start_index\":{\"description\":\"Start of segment of the response that is attributed to this source.\\n\\nIndex indicates the start of the segment, measured in bytes.\",\"format\":\"int32\",\"type\":\"integer\"},\"title\":{\"description\":\"The title of the URL.\",\"type\":\"string\"},\"type\":{\"const\":\"url_citation\"},\"url\":{\"description\":\"The URL.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"URLCitation\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLCitation\"},\"UrlContext\":{\"description\":\"A tool that can be used by the model to fetch URL context.\",\"properties\":{\"type\":{\"const\":\"url_context\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLContext\"},\"UrlContextCallArguments\":{\"description\":\"The arguments to pass to the URL context.\",\"properties\":{\"urls\":{\"description\":\"The URLs to fetch.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"URLContextCallArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLContextCallArguments\"},\"UrlContextCallStep\":{\"description\":\"URL context call step.\",\"example\":{\"arguments\":{\"urls\":[\"https://www.example.com\"]},\"id\":\"url_call_10219\",\"type\":\"url_context_call\"},\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/UrlContextCallArguments\",\"description\":\"Required. The arguments to pass to the URL context.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"url_context_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"UrlContextCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"URLContextCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLContextCallStep\"},\"UrlContextResult\":{\"description\":\"The result of the URL context.\",\"properties\":{\"status\":{\"description\":\"The status of the URL retrieval.\",\"enum\":[\"success\",\"error\",\"paywall\",\"unsafe\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Url retrieval is successful.\",\"Url retrieval is failed due to error.\",\"Url retrieval is failed because the content is behind paywall.\",\"Url retrieval is failed because the content is unsafe.\"]},\"url\":{\"description\":\"The URL that was fetched.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"URLContextResult\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLContextResult\"},\"UrlContextResultStep\":{\"description\":\"URL context result step.\",\"example\":{\"call_id\":\"url_call_10219\",\"result\":[{\"status\":\"success\",\"url\":\"https://www.example.com\"}],\"type\":\"url_context_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"is_error\":{\"description\":\"Whether the URL context resulted in an error.\",\"type\":\"boolean\"},\"result\":{\"description\":\"Required. The results of the URL context.\",\"items\":{\"$ref\":\"#/$defs/UrlContextResult\"},\"type\":\"array\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"url_context_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"UrlContextResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"URLContextResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLContextResultStep\"},\"UserInputStep\":{\"description\":\"Input provided by the user.\",\"example\":{\"content\":[{\"text\":\"What is the capital of France?\",\"type\":\"text\"}],\"type\":\"user_input\"},\"properties\":{\"content\":{\"items\":{\"$ref\":\"#/$defs/Content\"},\"title\":\"ContentList\",\"type\":\"array\"},\"type\":{\"const\":\"user_input\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"UserInputStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"UserInputStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"VerbatimTranscriptionMode\":{\"description\":\"Configuration for verbatim transcription mode.\",\"properties\":{\"diarization_mode\":{\"description\":\"Optional. Configures speaker diarization. Supported values: \\\"speaker\\\".\",\"type\":\"string\"},\"timestamp_granularities\":{\"description\":\"Optional. The granularity of timestamps to include in the transcription output.\\nSupported values: \\\"word\\\". If empty, no timestamps are generated.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"type\":{\"const\":\"verbatim\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"VertexAISearchConfig\":{\"description\":\"Used to specify configuration for VertexAISearch.\",\"properties\":{\"datastores\":{\"description\":\"Optional. Used to specify Vertex AI Search datastores.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"engine\":{\"description\":\"Optional. Used to specify Vertex AI Search engine.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"VideoConfig\":{\"description\":\"Configuration options for video generation.\",\"properties\":{\"task\":{\"description\":\"Optional task mode for video generation. If not specified, the model\\nautomatically determines the appropriate mode based on the provided text\\nprompt and input media.\",\"enum\":[\"text_to_video\",\"image_to_video\",\"reference_to_video\",\"edit\",\"extend\",\"upscale\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Generates video solely from a text prompt.\",\"Generates video from one or two source images. The first image defines\\nthe starting frame, and the optional second image defines the ending\\nframe.\",\"Generates video using reference media (such as images or video).\",\"Modifies an existing input video.\",\"Extends an existing input video.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"VideoConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"VideoContent\":{\"description\":\"A video content block.\",\"example\":{\"type\":\"video\",\"uri\":\"https://www.youtube.com/watch?v=9hE5-98ZeCg\"},\"properties\":{\"data\":{\"description\":\"The video content.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"mime_type\":{\"description\":\"The mime type of the video.\",\"enum\":[\"video/mp4\",\"video/mpeg\",\"video/mpg\",\"video/mov\",\"video/avi\",\"video/x-flv\",\"video/webm\",\"video/wmv\",\"video/3gpp\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"MP4 video format\",\"MPEG video format\",\"MPG video format\",\"MOV video format\",\"AVI video format\",\"FLV video format\",\"WebM video format\",\"WMV video format\",\"3GPP video format\"]},\"name\":{\"description\":\"A user-defined name for this content block. Can be referenced by the model\\nin the final response.\",\"type\":\"string\"},\"processing\":{\"description\":\"How the model processes this video for understanding.\",\"oneOf\":[{\"$ref\":\"#/$defs/MediaProcessing\"},{\"enum\":[\"static\",\"agentic\"],\"title\":\"processing_enum\",\"type\":\"string\",\"x-google-enum-descriptions\":[\"Fixed-rate frame extraction. All frames placed in context.\",\"Model-driven dynamic navigation.\"]}],\"title\":\"Processing\"},\"resolution\":{\"$ref\":\"#/$defs/MediaResolution\",\"description\":\"The resolution of the media.\"},\"type\":{\"const\":\"video\"},\"uri\":{\"description\":\"The URI of the video.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Video\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"VideoContent\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"VideoResponseFormat\":{\"description\":\"Configuration for video output format.\",\"example\":{\"aspect_ratio\":\"16:9\",\"delivery\":\"inline\",\"type\":\"video\"},\"properties\":{\"aspect_ratio\":{\"description\":\"The aspect ratio for the video output.\",\"enum\":[\"16:9\",\"9:16\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"16:9 aspect ratio.\",\"9:16 aspect ratio.\"]},\"delivery\":{\"description\":\"The delivery mode for the video output.\",\"enum\":[\"inline\",\"uri\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Video data is returned inline in the response.\",\"Video data is returned as a URI.\"]},\"duration\":{\"description\":\"The duration for the video output.\",\"format\":\"google-duration\",\"type\":\"string\"},\"gcs_uri\":{\"description\":\"The Cloud Storage URI to store the video output. Required for Vertex if\\ndelivery mode is URI.\",\"type\":\"string\"},\"resolution\":{\"description\":\"The video output resolution. Defaults to 720p.\",\"enum\":[\"360p\",\"720p\",\"1080p\",\"4k\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"360p resolution.\",\"720p resolution.\",\"1080p resolution.\",\"4K resolution.\"]},\"type\":{\"const\":\"video\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Video Output\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"VideoResponseFormat\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"WebhookConfig\":{\"description\":\"Message for configuring webhook events for a request.\",\"properties\":{\"uris\":{\"description\":\"Optional. If set, these webhook URIs will be used for webhook events instead of the\\nregistered webhooks.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"user_metadata\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Optional. The user metadata that will be returned on each event emission to the\\nwebhooks.\",\"type\":\"object\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"WebhookConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"WordInfo\":{\"description\":\"Word-level ASR annotation for transcription output.\\nCarries the word text, optional timing, and optional speaker attribution.\",\"properties\":{\"end_index\":{\"description\":\"End of the attributed segment, exclusive.\",\"format\":\"int32\",\"type\":\"integer\"},\"end_offset\":{\"description\":\"End offset in time of the word relative to the start of the audio.\\nPresent when timestamp_granularities contains \\\"word\\\".\",\"format\":\"google-duration\",\"type\":\"string\"},\"speaker\":{\"description\":\"Optional. Speaker label for this word (e.g. \\\"spk_1\\\", \\\"spk_2\\\").\\nPresent when diarization_mode is set in TranscriptionConfig.\",\"type\":\"string\"},\"start_index\":{\"description\":\"Start of segment of the response that is attributed to this source.\\n\\nIndex indicates the start of the segment, measured in bytes.\",\"format\":\"int32\",\"type\":\"integer\"},\"start_offset\":{\"description\":\"Start offset in time of the word relative to the start of the audio.\\nPresent when timestamp_granularities contains \\\"word\\\".\",\"format\":\"google-duration\",\"type\":\"string\"},\"text\":{\"description\":\"The transcribed word.\",\"type\":\"string\"},\"type\":{\"const\":\"word_info\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"WordInfo\"}],\"x-speakeasy-model-namespace\":\"interactions\"\x7d\x7d,\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"oneOf\":[{\"$ref\":\"#/$defs/AgentInteraction\"},{\"$ref\":\"#/$defs/ModelInteraction\"}]}", "CreateInteraction#ModelInteraction": "{\"$defs\":{\"AllowedTools\":{\"description\":\"The configuration for allowed tools.\",\"properties\":{\"mode\":{\"$ref\":\"#/$defs/ToolChoiceType\",\"description\":\"The mode of the tool choice.\"},\"tools\":{\"description\":\"The names of the allowed tools.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"AllowedTools\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"Annotation\":{\"description\":\"Citation information for model-generated content.\",\"oneOf\":[{\"$ref\":\"#/$defs/FileCitation\"},{\"$ref\":\"#/$defs/PlaceCitation\"},{\"$ref\":\"#/$defs/SpeechAnnotation\"},{\"$ref\":\"#/$defs/UrlCitation\"},{\"$ref\":\"#/$defs/WordInfo\"}],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Annotation\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"AudioContent\":{\"description\":\"An audio content block.\",\"example\":{\"data\":\"BASE64_ENCODED_AUDIO\",\"mime_type\":\"audio/wav\",\"type\":\"audio\"},\"properties\":{\"channels\":{\"description\":\"The number of audio channels.\",\"format\":\"int32\",\"type\":\"integer\"},\"data\":{\"description\":\"The audio content.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"mime_type\":{\"description\":\"The mime type of the audio.\",\"enum\":[\"audio/wav\",\"audio/mp3\",\"audio/aiff\",\"audio/aac\",\"audio/ogg\",\"audio/flac\",\"audio/mpeg\",\"audio/m4a\",\"audio/l16\",\"audio/opus\",\"audio/alaw\",\"audio/mulaw\",\"audio/webm\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"WAV audio format\",\"MP3 audio format\",\"AIFF audio format\",\"AAC audio format\",\"OGG audio format\",\"FLAC audio format\",\"MPEG audio format\",\"M4A audio format\",\"L16 audio format\",\"OPUS audio format\",\"ALAW audio format\",\"MULAW audio format\",\"WebM audio format\"]},\"processing\":{\"description\":\"How the model processes this audio for understanding.\",\"oneOf\":[{\"$ref\":\"#/$defs/AudioMediaProcessing\"},{\"enum\":[\"static\"],\"title\":\"audio_processing_enum\",\"type\":\"string\",\"x-google-enum-descriptions\":[\"All audio placed in context.\"]}],\"title\":\"AudioProcessing\"},\"sample_rate\":{\"description\":\"The sample rate of the audio.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"const\":\"audio\"},\"uri\":{\"description\":\"The URI of the audio.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Audio\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"AudioContent\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"AudioMediaProcessing\":{\"oneOf\":[{\"$ref\":\"#/$defs/AudioStaticMediaProcessing\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"AudioResponseFormat\":{\"description\":\"Configuration for audio output format.\",\"example\":{\"sample_rate\":24000,\"type\":\"audio\"},\"properties\":{\"bit_rate\":{\"description\":\"Bit rate in bits per second (bps). Only applicable for compressed formats\\n(MP3, Opus).\",\"format\":\"int32\",\"type\":\"integer\"},\"delivery\":{\"description\":\"The delivery mode for the audio output.\",\"enum\":[\"inline\",\"uri\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Audio data is returned inline in the response.\",\"Audio data is returned as a URI.\"]},\"mime_type\":{\"description\":\"The MIME type of the audio output.\",\"enum\":[\"audio/mp3\",\"audio/ogg_opus\",\"audio/l16\",\"audio/wav\",\"audio/alaw\",\"audio/mulaw\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"MP3 audio format.\",\"OGG Opus audio format.\",\"Raw PCM (L16) audio format.\",\"WAV audio format.\",\"A-law audio format.\",\"Mu-law audio format.\"]},\"sample_rate\":{\"description\":\"Sample rate in Hz.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"const\":\"audio\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Audio Output\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"AudioResponseFormat\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"AudioStaticMediaProcessing\":{\"properties\":{\"end_offset\":{\"description\":\"Optional. Segment end time, relative to the start of the audio stream. Specified\\nas a decimal number of seconds followed by an 's' suffix, e.g., \\\"30s\\\".\\nMust be positive and greater than `start_offset` if `start_offset` is\\nset.\",\"format\":\"google-duration\",\"type\":\"string\"},\"start_offset\":{\"description\":\"Optional. Segment start time, relative to the start of the audio stream. Specified\\nas a decimal number of seconds followed by an 's' suffix, e.g., \\\"10.5s\\\".\\nMust be non-negative.\",\"format\":\"google-duration\",\"type\":\"string\"},\"type\":{\"const\":\"static\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"AudioStaticMediaProcessing\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"CodeExecution\":{\"description\":\"A tool that can be used by the model to execute code.\",\"properties\":{\"type\":{\"const\":\"code_execution\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"CodeExecutionCallStep\":{\"description\":\"Code execution call step.\",\"example\":{\"arguments\":{\"code\":\"print(sum(range(1, 11)))\",\"language\":\"python\"},\"id\":\"code_call_71021\",\"type\":\"code_execution_call\"},\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/CodeExecutionCallStepArguments\",\"description\":\"Required. The arguments to pass to the code execution.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"code_execution_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"CodeExecutionCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"CodeExecutionCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"CodeExecutionCallStepArguments\":{\"description\":\"The arguments to pass to the code execution.\",\"properties\":{\"code\":{\"description\":\"The code to be executed.\",\"type\":\"string\"},\"language\":{\"description\":\"Programming language of the `code`.\",\"enum\":[\"python\",\"bash\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Python \\u003e= 3.10, with numpy and simpy available.\",\"Bash. Only available for Gemini 3.0 model or above.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"CodeExecutionCallArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"CodeExecutionCallArguments\"},\"CodeExecutionResultStep\":{\"description\":\"Code execution result step.\",\"example\":{\"call_id\":\"code_call_71021\",\"result\":\"55\\n\",\"type\":\"code_execution_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"is_error\":{\"description\":\"Whether the code execution resulted in an error.\",\"type\":\"boolean\"},\"result\":{\"description\":\"The output of the code execution.\",\"oneOf\":[{\"description\":\"The contents of the list.\",\"items\":{\"$ref\":\"#/$defs/Content\"},\"title\":\"ContentList\",\"type\":\"array\"},{\"type\":\"string\"}]},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"code_execution_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"CodeExecutionResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"CodeExecutionResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ComputerUse\":{\"description\":\"A tool that can be used by the model to interact with the computer.\",\"properties\":{\"disabled_safety_policies\":{\"description\":\"Optional. Disabled safety policies for computer use.\",\"items\":{\"enum\":[\"financial_transactions\",\"sensitive_data_modification\",\"communication_tool\",\"account_creation\",\"data_modification\",\"user_consent_management\",\"legal_terms_and_agreements\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Safety policy for financial transactions.\",\"Safety policy for sensitive data modification.\",\"Safety policy for communication tools (e.g. Gmail, Chat, Meet).\",\"Safety policy for account creation.\",\"Safety policy for data modification.\",\"Safety policy for user consent management.\",\"Safety policy for legal terms and agreements.\"]},\"type\":\"array\"},\"enable_prompt_injection_detection\":{\"description\":\"Whether enable the prompt injection detection check on computer-use\\nrequest.\",\"type\":\"boolean\"},\"environment\":{\"description\":\"The environment being operated.\",\"enum\":[\"browser\",\"mobile\",\"desktop\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Operates in a web browser.\",\"Operates in a mobile environment.\",\"Operates in a desktop environment.\"]},\"excluded_predefined_functions\":{\"description\":\"The list of predefined functions that are excluded from the model call.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"type\":{\"const\":\"computer_use\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Content\":{\"description\":\"The content of the response.\",\"oneOf\":[{\"$ref\":\"#/$defs/AudioContent\"},{\"$ref\":\"#/$defs/DocumentContent\"},{\"$ref\":\"#/$defs/ImageContent\"},{\"$ref\":\"#/$defs/TextContent\"},{\"$ref\":\"#/$defs/VideoContent\"}],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Content\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"DocumentContent\":{\"description\":\"A document content block.\",\"example\":{\"data\":\"BASE64_ENCODED_DOCUMENT\",\"mime_type\":\"application/pdf\",\"type\":\"document\"},\"properties\":{\"data\":{\"description\":\"The document content.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"mime_type\":{\"description\":\"The mime type of the document.\",\"enum\":[\"application/pdf\",\"text/csv\",\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"application/vnd.ms-powerpoint\",\"application/vnd.oasis.opendocument.presentation\",\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"application/msword\",\"application/vnd.openxmlformats-officedocument.wordprocessingml.template\",\"application/vnd.oasis.opendocument.text\",\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"application/vnd.ms-excel\",\"application/vnd.oasis.opendocument.spreadsheet\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"PDF document format\",\"CSV document format\",\"PPTX presentation format\",\"PPT presentation format\",\"ODP presentation format\",\"DOCX document format\",\"DOC document format\",\"DOTX document template format\",\"ODT document format\",\"XLSX spreadsheet format\",\"XLS spreadsheet format\",\"ODS spreadsheet format\"]},\"processing\":{\"description\":\"How the model processes this document for understanding.\",\"oneOf\":[{\"$ref\":\"#/$defs/DocumentMediaProcessing\"},{\"enum\":[\"static\"],\"title\":\"document_processing_enum\",\"type\":\"string\",\"x-google-enum-descriptions\":[\"All extracted pages placed in context.\"]}],\"title\":\"DocumentProcessing\"},\"resolution\":{\"$ref\":\"#/$defs/MediaResolution\",\"description\":\"The resolution of the media. Applicable when PAGE_IMAGE is selected in\\ncontent_layers.\"},\"type\":{\"const\":\"document\"},\"uri\":{\"description\":\"The URI of the document.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Document\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"DocumentContent\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"DocumentMediaProcessing\":{\"oneOf\":[{\"$ref\":\"#/$defs/DocumentStaticMediaProcessing\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"DocumentStaticMediaProcessing\":{\"properties\":{\"page_options\":{\"$ref\":\"#/$defs/PageProcessingOptions\",\"description\":\"Options for paginated documents. Only valid for paginated document\\nMIME types (e.g. PDF, Office documents, and presentations).\"},\"spreadsheet_options\":{\"$ref\":\"#/$defs/SpreadsheetProcessingOptions\",\"description\":\"Options for spreadsheets. Only valid for spreadsheet MIME types\\n(.xlsx, .xls, .ods).\"},\"type\":{\"const\":\"static\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"DocumentStaticMediaProcessing\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"EgressRule\":{\"description\":\"A single domain allowlist rule with optional header injection.\",\"properties\":{\"credential\":{\"description\":\"Optional. Reference to a server-managed Credential resource by ID.\",\"type\":\"string\"},\"domain\":{\"description\":\"Domain to allow outbound requests to. Supports wildcards (e.g.\\n'*.googleapis.com'). Use '*' to allow all domains.\",\"type\":\"string\"},\"transform\":{\"description\":\"Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically.\",\"oneOf\":[{\"description\":\"A list of headers to inject.\",\"items\":{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"A single header to inject.\",\"type\":\"object\"},\"type\":\"array\"},{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"A single header injection mapping, e.g., {\\\"Authorization\\\": \\\"Bearer token\\\"}.\",\"type\":\"object\"}],\"x-speakeasy-param-sensitive\":true\x7d\x7d,\"required\":[\"domain\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"AllowlistEntry\"},\"EnvVar\":{\"description\":\"An environment variable to set in the execution environment.\",\"properties\":{\"credential\":{\"description\":\"Optional reference to a server-managed Credential resource by ID.\",\"type\":\"string\"},\"value\":{\"description\":\"Direct string value for plain environment variables.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"EnvironmentConfig\":{\"description\":\"Configuration for a custom environment.\",\"examples\":[{\"sources\":[{\"content\":\"You are a data analyst. Always include visualizations and export results as PDF.\",\"target\":\".agents/AGENTS.md\",\"type\":\"inline\"},{\"content\":\"---\\nname: slide-maker\\ndescription: Create HTML slide decks\\n---\\n# Slide Maker\\n\\nWhen asked to create a presentation:\\n1. Analyze the input data\\n2. Create an HTML slide deck with reveal.js\\n3. Save to /workspace/output/slides.html\",\"target\":\".agents/skills/slide-maker/SKILL.md\",\"type\":\"inline\"}],\"type\":\"remote\"},{\"sources\":[{\"source\":\"https://github.com/my-org/my-skills.git\",\"target\":\".agents/skills\",\"type\":\"repository\"},{\"source\":\"gs://my-bucket/my-folder\",\"target\":\"/workspace/data\",\"type\":\"gcs\"}],\"type\":\"remote\"},{\"network\":{\"allowlist\":[{\"domain\":\"pypi.org\"},{\"domain\":\"*.github.com\"}]},\"type\":\"remote\"},{\"network\":{\"allowlist\":[{\"domain\":\"api.github.com\",\"transform\":{\"Authorization\":\"Bearer YOUR_GITHUB_TOKEN\"\x7d\x7d]},\"type\":\"remote\"}],\"properties\":{\"custom_config\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Optional. Arbitrary customer-defined JSON configuration passed through\\nto the self-hosted environment poller. Only supported when `mode` is\\n`SELF_HOSTED`.\",\"type\":\"object\"},\"env\":{\"additionalProperties\":{\"oneOf\":[{\"$ref\":\"#/$defs/EnvVar\"},{\"type\":\"string\"}]},\"description\":\"Environment variables to set in the sandbox environment.\",\"type\":\"object\"},\"environment_id\":{\"description\":\"Optional. The environment ID for the interaction. If specified, the request will\\nupdate the existing environment instead of creating a new one;\\ncreation-only fields (`env` and `sources`) cannot be updated when resuming\\nan existing environment.\",\"type\":\"string\"},\"mode\":{\"$ref\":\"#/$defs/EnvironmentMode\",\"description\":\"The compute lifecycle mode for this environment.\"},\"network\":{\"description\":\"Network configuration for the environment.\",\"oneOf\":[{\"$ref\":\"#/$defs/EnvironmentNetworkEgressAllowlist\"},{\"enum\":[\"disabled\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"All network egress is blocked.\"]}]},\"sources\":{\"items\":{\"$ref\":\"#/$defs/Source\"},\"type\":\"array\"},\"type\":{\"const\":\"remote\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Inline Sources\",\"External Sources\",\"Network Allowlist\",\"Proxy Credentials\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Environment\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"Environment\",\"x-speakeasy-unknown-values\":\"disallow\"},\"EnvironmentMode\":{\"description\":\"The compute lifecycle mode for an environment.\",\"enum\":[\"on_demand\",\"self_hosted\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"\",\"\"],\"x-speakeasy-exports\":[{\"group\":\"environments\",\"name\":\"EnvironmentMode\"},{\"group\":\"interactions\",\"name\":\"EnvironmentMode\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"EnvironmentNetworkEgressAllowlist\":{\"description\":\"Network egress configuration for the environment.\",\"example\":{\"allowlist\":[{\"domain\":\"github.com\",\"transform\":[{\"Authorization\":\"Bearer your-token\"}]},{\"domain\":\"*.googleapis.com\"}]},\"properties\":{\"allowlist\":{\"description\":\"List of allowed domains and their configurations. Set to `\\\"disabled\\\"`\\nto block all network egress.\",\"oneOf\":[{\"items\":{\"$ref\":\"#/$defs/EgressRule\"},\"type\":\"array\"},{\"enum\":[\"disabled\"],\"title\":\"Disabled\",\"type\":\"string\",\"x-google-enum-descriptions\":[\"All network egress is blocked.\"]}]\x7d\x7d,\"type\":\"object\",\"x-example-summaries\":[\"Network Allowlist\"],\"x-speakeasy-model-namespace\":\"interactions\"},\"ExaAISearchConfig\":{\"description\":\"Used to specify configuration for ExaAISearch.\",\"properties\":{\"api_key\":{\"description\":\"Required. The API key for ExaAiSearch.\",\"type\":\"string\",\"x-speakeasy-param-sensitive\":true},\"custom_config\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Optional. This field can be used to pass any parameter from the Exa.ai Search API.\",\"type\":\"object\"\x7d\x7d,\"required\":[\"api_key\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"FileCitation\":{\"description\":\"A file citation annotation.\",\"properties\":{\"custom_metadata\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"User provided metadata about the retrieved context.\",\"type\":\"object\"},\"document_uri\":{\"description\":\"The URI of the file.\",\"type\":\"string\"},\"end_index\":{\"description\":\"End of the attributed segment, exclusive.\",\"format\":\"int32\",\"type\":\"integer\"},\"file_name\":{\"description\":\"The name of the file.\",\"type\":\"string\"},\"media_id\":{\"description\":\"Media ID in-case of image citations, if applicable.\",\"type\":\"string\"},\"page_number\":{\"description\":\"Page number of the cited document, if applicable.\",\"format\":\"int32\",\"type\":\"integer\"},\"source\":{\"description\":\"Source attributed for a portion of the text.\",\"type\":\"string\"},\"start_index\":{\"description\":\"Start of segment of the response that is attributed to this source.\\n\\nIndex indicates the start of the segment, measured in bytes.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"const\":\"file_citation\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"FileCitation\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"FileSearch\":{\"description\":\"A tool that can be used by the model to search files.\",\"properties\":{\"file_search_store_names\":{\"description\":\"The file search store names to search.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"metadata_filter\":{\"description\":\"Metadata filter to apply to the semantic retrieval documents and chunks.\",\"type\":\"string\"},\"top_k\":{\"description\":\"The number of semantic retrieval chunks to retrieve.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"const\":\"file_search\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"FileSearchCallStep\":{\"description\":\"File Search call step.\",\"example\":{\"id\":\"file_call_88192\",\"type\":\"file_search_call\"},\"properties\":{\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"file_search_call\"\x7d\x7d,\"required\":[\"id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"FileSearchCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"FileSearchCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"FileSearchResultStep\":{\"description\":\"File Search result step.\",\"example\":{\"call_id\":\"file_call_88192\",\"type\":\"file_search_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"file_search_result\"\x7d\x7d,\"required\":[\"call_id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"FileSearchResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"FileSearchResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"Filter\":{\"description\":\"Config for filters.\",\"properties\":{\"metadata_filter\":{\"description\":\"Optional. String for metadata filtering.\",\"type\":\"string\"},\"vector_distance_threshold\":{\"description\":\"Optional. Only returns contexts with vector distance smaller than the\\nthreshold.\",\"format\":\"double\",\"type\":\"number\"},\"vector_similarity_threshold\":{\"description\":\"Optional. Only returns contexts with vector similarity larger than the\\nthreshold.\",\"format\":\"double\",\"type\":\"number\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Function\":{\"description\":\"A tool that can be used by the model.\",\"properties\":{\"defer_loading\":{\"description\":\"If true, the function's loading is deferred.\",\"type\":\"boolean\"},\"description\":{\"description\":\"A description of the function.\",\"type\":\"string\"},\"name\":{\"description\":\"The name of the function.\",\"type\":\"string\"},\"parameters\":{\"description\":\"The JSON Schema for the function's parameters.\\n\\nSupports a subset of JSON Schema. `minLength`, `maxLength`,\\n`minProperties`, `maxProperties`, `uniqueItems`, `contains`,\\n`minContains`, and `maxContains` are ignored and not enforced.\"},\"short_description\":{\"description\":\"A brief description of the function, shown to the model as a\\nshort summary of functions with `defer_loading` set to true.\",\"type\":\"string\"},\"type\":{\"const\":\"function\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Function\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"FunctionCallStep\":{\"description\":\"A function tool call step.\",\"example\":{\"arguments\":{\"location\":\"Boston, MA\"},\"id\":\"call_98231\",\"name\":\"get_weather\",\"type\":\"function_call\"},\"properties\":{\"arguments\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Required. The arguments to pass to the function.\",\"type\":\"object\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"name\":{\"description\":\"Required. The name of the tool to call.\",\"type\":\"string\"},\"type\":{\"const\":\"function_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"name\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"FunctionCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"FunctionCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"FunctionResultStep\":{\"description\":\"Result of a function tool call.\",\"example\":{\"call_id\":\"call_98231\",\"name\":\"get_weather\",\"result\":[{\"text\":\"{\\\"weather\\\":\\\"sunny\\\"}\",\"type\":\"text\"}],\"type\":\"function_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"is_error\":{\"description\":\"Whether the tool call resulted in an error.\",\"type\":\"boolean\"},\"name\":{\"description\":\"The name of the tool that was called.\",\"type\":\"string\"},\"result\":{\"description\":\"Required. The result of the tool call.\",\"oneOf\":[{\"items\":{\"$ref\":\"#/$defs/FunctionResultSubContent\"},\"type\":\"array\"},{\"additionalProperties\":true,\"type\":\"object\"},{\"type\":\"string\"}]},\"type\":{\"const\":\"function_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"FunctionResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"FunctionResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"FunctionResultSubContent\":{\"oneOf\":[{\"$ref\":\"#/$defs/AudioContent\"},{\"$ref\":\"#/$defs/DocumentContent\"},{\"$ref\":\"#/$defs/Function\"},{\"$ref\":\"#/$defs/ImageContent\"},{\"$ref\":\"#/$defs/TextContent\"},{\"$ref\":\"#/$defs/VideoContent\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"FunctionResultSubcontent\"},\"GenerationConfig\":{\"description\":\"Configuration parameters for model interactions.\",\"properties\":{\"image_config\":{\"$ref\":\"#/$defs/ImageConfig\",\"deprecated\":true,\"description\":\"Configuration for image interaction.\"},\"max_output_tokens\":{\"description\":\"The maximum number of tokens to include in the response.\",\"format\":\"int32\",\"type\":\"integer\"},\"seed\":{\"description\":\"Seed used in decoding for reproducibility.\",\"format\":\"int32\",\"type\":\"integer\"},\"speech_config\":{\"description\":\"Optional. Speech and multi-speaker configuration.\",\"oneOf\":[{\"$ref\":\"#/$defs/SpeakerConfig\"},{\"items\":{\"$ref\":\"#/$defs/SpeechConfig\"},\"type\":\"array\"}]},\"stop_sequences\":{\"description\":\"A list of character sequences that will stop output interaction.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"temperature\":{\"deprecated\":true,\"description\":\"Controls the randomness of the output.\",\"format\":\"float\",\"type\":\"number\"},\"thinking_level\":{\"$ref\":\"#/$defs/ThinkingLevel\",\"description\":\"The level of thought tokens that the model should generate.\"},\"thinking_summaries\":{\"$ref\":\"#/$defs/ThinkingSummaries\",\"description\":\"Whether to include thought summaries in the response.\"},\"tool_choice\":{\"description\":\"The tool choice configuration.\",\"oneOf\":[{\"$ref\":\"#/$defs/ToolChoiceConfig\"},{\"$ref\":\"#/$defs/ToolChoiceType\"}]},\"top_p\":{\"deprecated\":true,\"description\":\"The maximum cumulative probability of tokens to consider when sampling.\",\"format\":\"float\",\"type\":\"number\"},\"transcription_config\":{\"$ref\":\"#/$defs/TranscriptionConfig\",\"description\":\"Optional. Configuration for speech recognition (transcription). If present, ASR is\\nenabled.\"},\"video_config\":{\"$ref\":\"#/$defs/VideoConfig\",\"description\":\"Configuration for video generation.\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GenerationConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleMaps\":{\"description\":\"A tool that can be used by the model to call Google Maps.\",\"properties\":{\"enable_widget\":{\"description\":\"Whether to return a widget context token in the tool call result of the\\nresponse.\",\"type\":\"boolean\"},\"latitude\":{\"description\":\"The latitude of the user's location.\",\"format\":\"double\",\"type\":\"number\"},\"longitude\":{\"description\":\"The longitude of the user's location.\",\"format\":\"double\",\"type\":\"number\"},\"type\":{\"const\":\"google_maps\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleMapsCallStep\":{\"description\":\"Google Maps call step.\",\"example\":{\"arguments\":{\"queries\":[\"parks near San Francisco\"]},\"id\":\"maps_call_39201\",\"type\":\"google_maps_call\"},\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/GoogleMapsCallStepArguments\",\"description\":\"The arguments to pass to the Google Maps tool.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"google_maps_call\"\x7d\x7d,\"required\":[\"id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"GoogleMapsCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleMapsCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleMapsCallStepArguments\":{\"description\":\"The arguments to pass to the Google Maps tool.\",\"properties\":{\"queries\":{\"description\":\"The queries to be executed.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleMapsCallArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"GoogleMapsCallArguments\"},\"GoogleMapsResultItem\":{\"description\":\"The result of the Google Maps.\",\"properties\":{\"places\":{\"items\":{\"$ref\":\"#/$defs/GoogleMapsResultPlaces\"},\"type\":\"array\"},\"widget_context_token\":{\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleMapsResult\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"GoogleMapsResult\"},\"GoogleMapsResultPlaces\":{\"properties\":{\"name\":{\"type\":\"string\"},\"place_id\":{\"type\":\"string\"},\"review_snippets\":{\"items\":{\"$ref\":\"#/$defs/ReviewSnippet\"},\"type\":\"array\"},\"url\":{\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleMapsResultStep\":{\"description\":\"Google Maps result step.\",\"example\":{\"call_id\":\"maps_call_39201\",\"result\":[{\"places\":[{\"name\":\"Golden Gate Park\",\"place_id\":\"ChIJIQBpAG2ahYAR9R7bNdTLg8M\",\"url\":\"https://maps.google.com/?cid=12345\"}]}],\"type\":\"google_maps_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"result\":{\"items\":{\"$ref\":\"#/$defs/GoogleMapsResultItem\"},\"type\":\"array\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"google_maps_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"GoogleMapsResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleMapsResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleSearch\":{\"description\":\"A tool that can be used by the model to search Google.\",\"properties\":{\"search_types\":{\"description\":\"The types of search grounding to enable.\",\"items\":{\"enum\":[\"web_search\",\"image_search\",\"enterprise_web_search\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Setting this field enables web search. Only text results are returned.\",\"Setting this field enables image search. Image bytes are returned.\",\"Setting this field enables enterprise web search.\"]},\"type\":\"array\"},\"type\":{\"const\":\"google_search\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleSearchCallStep\":{\"description\":\"Google Search call step.\",\"example\":{\"arguments\":{\"queries\":[\"Who won the men's 100m in Paris 2024?\"]},\"id\":\"search_call_19201\",\"type\":\"google_search_call\"},\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/GoogleSearchCallStepArguments\",\"description\":\"Required. The arguments to pass to Google Search.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"search_type\":{\"description\":\"The type of search grounding enabled.\",\"enum\":[\"web_search\",\"image_search\",\"enterprise_web_search\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Setting this field enables web search. Only text results are returned.\",\"Setting this field enables image search. Image bytes are returned.\",\"Setting this field enables enterprise web search.\"]},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"google_search_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"GoogleSearchCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleSearchCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"GoogleSearchCallStepArguments\":{\"description\":\"The arguments to pass to Google Search.\",\"properties\":{\"queries\":{\"description\":\"Web search queries for the following-up web search.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleSearchCallArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"GoogleSearchCallArguments\"},\"GoogleSearchResultItem\":{\"description\":\"The result of the Google Search.\",\"properties\":{\"search_suggestions\":{\"description\":\"Web content snippet that can be embedded in a web page or an app webview.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleSearchResult\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"GoogleSearchResult\"},\"GoogleSearchResultStep\":{\"description\":\"Google Search result step.\",\"example\":{\"call_id\":\"search_call_19201\",\"result\":[{\"search_suggestions\":\"\\u003cdiv class=\\\"container\\\"\\u003e...\\u003c/div\\u003e\"}],\"type\":\"google_search_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"is_error\":{\"description\":\"Whether the Google Search resulted in an error.\",\"type\":\"boolean\"},\"result\":{\"description\":\"Required. The results of the Google Search.\",\"items\":{\"$ref\":\"#/$defs/GoogleSearchResultItem\"},\"type\":\"array\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"google_search_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"GoogleSearchResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"GoogleSearchResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"HarmCategory\":{\"enum\":[\"hate_speech\",\"dangerous_content\",\"harassment\",\"sexually_explicit\",\"civic_integrity\",\"image_hate\",\"image_dangerous_content\",\"image_harassment\",\"image_sexually_explicit\",\"jailbreak\"],\"type\":\"string\",\"x-google-enum-deprecated\":[false,false,false,false,true,false,false,false,false,false],\"x-google-enum-descriptions\":[\"Content that promotes violence or incites hatred against individuals or\\ngroups based on certain attributes.\",\"Content that promotes, facilitates, or enables dangerous activities.\",\"Abusive, threatening, or content intended to bully, torment, or ridicule.\",\"Content that contains sexually explicit material.\",\"Deprecated: Election filter is not longer supported.\\nThe harm category is civic integrity.\",\"Images that contain hate speech.\",\"Images that contain dangerous content.\",\"Images that contain harassment.\",\"Images that contain sexually explicit content.\",\"Prompts designed to bypass safety filters.\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"HarmCategory\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"HybridSearch\":{\"description\":\"Config for Hybrid Search.\",\"properties\":{\"alpha\":{\"description\":\"Optional. Alpha value controls the weight between dense and sparse vector search\\nresults.\",\"format\":\"float\",\"type\":\"number\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"ImageConfig\":{\"deprecated\":true,\"description\":\"The configuration for image interaction.\",\"properties\":{\"aspect_ratio\":{\"description\":\"The aspect ratio of the image to generate. Supported aspect ratios: 1:1,\\n2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9.\\n\\nIf not specified, the model will choose a default aspect ratio based on any\\nreference images provided.\",\"enum\":[\"1:1\",\"2:3\",\"3:2\",\"3:4\",\"4:3\",\"4:5\",\"5:4\",\"9:16\",\"16:9\",\"21:9\",\"1:8\",\"8:1\",\"1:4\",\"4:1\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"1:1 aspect ratio.\",\"2:3 aspect ratio.\",\"3:2 aspect ratio.\",\"3:4 aspect ratio.\",\"4:3 aspect ratio.\",\"4:5 aspect ratio.\",\"5:4 aspect ratio.\",\"9:16 aspect ratio.\",\"16:9 aspect ratio.\",\"21:9 aspect ratio.\",\"1:8 aspect ratio.\",\"8:1 aspect ratio.\",\"1:4 aspect ratio.\",\"4:1 aspect ratio.\"]},\"image_size\":{\"description\":\"Specifies the size of generated images. Supported values are `1K`, `2K`,\\n`4K`. If not specified, the model will use default value `1K`.\",\"enum\":[\"1K\",\"2K\",\"4K\",\"512\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"1K image size.\",\"2K image size.\",\"4K image size.\",\"512 image size.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"ImageContent\":{\"description\":\"An image content block.\",\"example\":{\"data\":\"BASE64_ENCODED_IMAGE\",\"mime_type\":\"image/png\",\"type\":\"image\"},\"properties\":{\"data\":{\"description\":\"The image content.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"mime_type\":{\"description\":\"The mime type of the image.\",\"enum\":[\"image/png\",\"image/jpeg\",\"image/webp\",\"image/heic\",\"image/heif\",\"image/gif\",\"image/bmp\",\"image/tiff\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"PNG image format\",\"JPEG image format\",\"WebP image format\",\"HEIC image format\",\"HEIF image format\",\"GIF image format\",\"BMP image format\",\"TIFF image format\"]},\"resolution\":{\"$ref\":\"#/$defs/MediaResolution\",\"description\":\"The resolution of the media.\"},\"type\":{\"const\":\"image\"},\"uri\":{\"description\":\"The URI of the image.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Image\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ImageContent\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ImageResponseFormat\":{\"description\":\"Configuration for image output format.\",\"example\":{\"aspect_ratio\":\"16:9\",\"image_size\":\"1K\",\"mime_type\":\"image/jpeg\",\"type\":\"image\"},\"properties\":{\"aspect_ratio\":{\"description\":\"The aspect ratio for the image output.\",\"enum\":[\"1:1\",\"2:3\",\"3:2\",\"3:4\",\"4:3\",\"4:5\",\"5:4\",\"9:16\",\"16:9\",\"21:9\",\"1:8\",\"8:1\",\"1:4\",\"4:1\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"1:1 aspect ratio.\",\"2:3 aspect ratio.\",\"3:2 aspect ratio.\",\"3:4 aspect ratio.\",\"4:3 aspect ratio.\",\"4:5 aspect ratio.\",\"5:4 aspect ratio.\",\"9:16 aspect ratio.\",\"16:9 aspect ratio.\",\"21:9 aspect ratio.\",\"1:8 aspect ratio.\",\"8:1 aspect ratio.\",\"1:4 aspect ratio.\",\"4:1 aspect ratio.\"]},\"delivery\":{\"description\":\"The delivery mode for the image output.\",\"enum\":[\"inline\",\"uri\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Image data is returned inline in the response.\",\"Image data is returned as a URI.\"]},\"image_size\":{\"description\":\"The size of the image output.\",\"enum\":[\"512\",\"1K\",\"2K\",\"4K\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"512px image size.\",\"1K image size.\",\"2K image size.\",\"4K image size.\"]},\"mime_type\":{\"description\":\"The MIME type of the image output.\",\"enum\":[\"image/jpeg\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"JPEG image format.\"]},\"type\":{\"const\":\"image\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Image Output\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ImageResponseFormat\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"InteractionsInput\":{\"description\":\"The input for the interaction.\",\"oneOf\":[{\"$ref\":\"#/$defs/Content\"},{\"items\":{\"$ref\":\"#/$defs/Step\"},\"title\":\"StepList\",\"type\":\"array\"},{\"items\":{\"$ref\":\"#/$defs/Content\"},\"title\":\"ContentList\",\"type\":\"array\"},{\"type\":\"string\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"McpServer\":{\"description\":\"A MCPServer is a server that can be called by the model to perform actions.\",\"properties\":{\"allowed_tools\":{\"description\":\"The allowed tools.\",\"items\":{\"$ref\":\"#/$defs/AllowedTools\"},\"type\":\"array\"},\"defer_loading\":{\"description\":\"If true, loading of tools on this MCP server is deferred.\",\"type\":\"boolean\"},\"headers\":{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"Optional: Fields for authentication headers, timeouts, etc., if needed.\",\"type\":\"object\",\"x-speakeasy-param-sensitive\":true},\"name\":{\"description\":\"The name of the MCPServer.\",\"type\":\"string\"},\"type\":{\"const\":\"mcp_server\"},\"url\":{\"description\":\"The full URL for the MCPServer endpoint.\\nExample: \\\"https://api.example.com/mcp\\\"\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"MCPServer\"},\"McpServerToolCallStep\":{\"description\":\"MCPServer tool call step.\",\"example\":{\"arguments\":{\"income\":120000,\"state\":\"CA\"},\"id\":\"mcp_call_29012\",\"name\":\"calculate_tax\",\"server_name\":\"financial_mcp_server\",\"type\":\"mcp_server_tool_call\"},\"properties\":{\"arguments\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Required. The JSON object of arguments for the function.\",\"type\":\"object\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"name\":{\"description\":\"Required. The name of the tool which was called.\",\"type\":\"string\"},\"server_name\":{\"description\":\"Required. The name of the used MCP server.\",\"type\":\"string\"},\"type\":{\"const\":\"mcp_server_tool_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"name\",\"server_name\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"McpServerToolCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"MCPServerToolCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"MCPServerToolCallStep\"},\"McpServerToolResultStep\":{\"description\":\"MCPServer tool result step.\",\"example\":{\"call_id\":\"mcp_call_29012\",\"name\":\"calculate_tax\",\"result\":{\"tax_due\":32400},\"server_name\":\"financial_mcp_server\",\"type\":\"mcp_server_tool_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"name\":{\"description\":\"Name of the tool which is called for this specific tool call.\",\"type\":\"string\"},\"result\":{\"description\":\"Required. The output from the MCP server call. Can be simple text or rich content.\",\"oneOf\":[{\"items\":{\"$ref\":\"#/$defs/FunctionResultSubContent\"},\"type\":\"array\"},{\"additionalProperties\":true,\"type\":\"object\"},{\"type\":\"string\"}]},\"server_name\":{\"description\":\"The name of the used MCP server.\",\"type\":\"string\"},\"type\":{\"const\":\"mcp_server_tool_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"McpServerToolResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"MCPServerToolResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"MCPServerToolResultStep\"},\"MediaProcessing\":{\"oneOf\":[{\"$ref\":\"#/$defs/StaticMediaProcessing\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"MediaResolution\":{\"enum\":[\"low\",\"medium\",\"high\",\"ultra_high\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Low resolution.\",\"Medium resolution.\",\"High resolution.\",\"Ultra high resolution.\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"MediaResolution\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ModelInteraction\":{\"description\":\"Interaction for generating the completion using models.\",\"properties\":{\"background\":{\"description\":\"Input only. Whether to run the model interaction in the background.\",\"type\":\"boolean\"},\"cached_content\":{\"deprecated\":true,\"description\":\"The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}\",\"type\":\"string\"},\"continuation_token\":{\"description\":\"Opaque token to resume a long decode. Output: set when status is\\nREQUIRES_CONTINUATION and decoding can be resumed. Input: pass the latest\\ntoken back unchanged when creating the next interaction to continue\\ndecoding.\",\"format\":\"byte\",\"type\":\"string\"},\"environment\":{\"description\":\"The environment configuration for the interaction. Can be an object\\nspecifying remote environment sources or a string referencing an existing\\nenvironment ID.\",\"oneOf\":[{\"$ref\":\"#/$defs/EnvironmentConfig\"},{\"type\":\"string\"}]},\"generation_config\":{\"$ref\":\"#/$defs/GenerationConfig\",\"description\":\"Input only. Configuration parameters for the model interaction.\"},\"input\":{\"$ref\":\"#/$defs/InteractionsInput\"},\"labels\":{\"additionalProperties\":{\"type\":\"string\"},\"description\":\"The labels with user-defined metadata for the request.\\n\\nLabel keys and values can be no longer than 63 characters\\n(Unicode codepoints) and can only contain lowercase letters, numeric\\ncharacters, underscores, and dashes. International characters are allowed.\\nLabel values are optional. Label keys must start with a letter.\",\"type\":\"object\"},\"model\":{\"$ref\":\"#/$defs/ModelOption\",\"description\":\"The name of the `Model` used for generating the interaction.\"},\"previous_interaction_id\":{\"description\":\"The ID of the previous interaction, if any.\",\"type\":\"string\"},\"response_format\":{\"description\":\"Enforces that the generated response is a JSON object that complies with\\nthe JSON schema specified in this field.\",\"oneOf\":[{\"$ref\":\"#/$defs/ResponseFormat\"},{\"items\":{\"$ref\":\"#/$defs/ResponseFormat\"},\"title\":\"ResponseFormatList\",\"type\":\"array\"}]},\"response_mime_type\":{\"deprecated\":true,\"description\":\"The mime type of the response. This is required if response_format is set.\",\"type\":\"string\"},\"response_modalities\":{\"deprecated\":true,\"description\":\"The requested modalities of the response (TEXT, IMAGE, AUDIO).\",\"items\":{\"$ref\":\"#/$defs/ResponseModality\"},\"type\":\"array\"},\"safety_settings\":{\"description\":\"Safety settings for the interaction.\",\"items\":{\"$ref\":\"#/$defs/SafetySetting\"},\"type\":\"array\"},\"service_tier\":{\"$ref\":\"#/$defs/ServiceTier\",\"description\":\"The service tier for the interaction.\"},\"store\":{\"description\":\"Input only. Whether to store the response and request for later retrieval.\",\"type\":\"boolean\"},\"stream\":{\"default\":true,\"description\":\"Input only. Whether the interaction is streamed as server-sent events. Defaults to true; set false to receive one complete interaction.\",\"type\":\"boolean\"},\"system_instruction\":{\"description\":\"System instruction for the interaction.\",\"type\":\"string\"},\"tools\":{\"description\":\"A list of tool declarations the model may call during interaction.\",\"items\":{\"$ref\":\"#/$defs/Tool\"},\"type\":\"array\"},\"webhook_config\":{\"$ref\":\"#/$defs/WebhookConfig\",\"description\":\"Optional. Webhook configuration for receiving notifications when the\\ninteraction completes.\"\x7d\x7d,\"required\":[\"model\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"CreateModelInteractionParamsNonStreaming\",\"representation\":\"input\"},{\"group\":\"interactions\",\"name\":\"CreateModelInteractionParamsStreaming\",\"representation\":\"input\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"CreateModelInteraction\"},\"ModelOption\":{\"default\":\"gemini-4-hydrogen\",\"description\":\"The model that will complete your prompt.\\\\n\\\\nSee [models](https://aistudio.google.com/docs/models) for additional details.\",\"enum\":[\"gemma-4-26b-a4b-it\",\"gemma-4-31b-it\",\"gemini-flash-latest\",\"gemini-flash-lite-latest\",\"gemini-pro-latest\",\"gemini-2.5-flash\",\"gemini-2.5-pro\",\"gemini-2.5-flash-lite\",\"gemini-3.5-flash-lite\",\"gemini-2.5-flash-image\",\"gemini-3-flash-preview\",\"gemini-3.1-pro-preview\",\"gemini-3.1-pro-preview-customtools\",\"gemini-3.1-flash-lite\",\"gemini-3.1-flash-lite-image\",\"gemini-3-pro-image\",\"nano-banana-pro-preview\",\"gemini-3.1-flash-image\",\"gemini-nano-banana-2.1\",\"gemini-3.1-flash-tts-preview\",\"gemini-3.5-flash\",\"gemini-3.6-flash\",\"gemini-3.7-flash\",\"gemini-3.8-flash\",\"gemini-4-argon\",\"gemini-4-carbon\",\"gemini-4-hydrogen\",\"gemini-4-neon\",\"gemini-3.8-flash-tts\",\"gemini-3.8-flash-lite-tts\",\"gemini-3.5-transcribe\",\"lyria-3-clip-preview\",\"lyria-3-pro-preview\",\"gemini-robotics-er-1.6-preview\",\"gemini-robotics-er-2-preview\",\"lyria-3.5\",\"gemini-omni-1.2-flash\",\"gemini-omni-1.1-flash\",\"gemini-omni-flash-preview\"],\"title\":\"Model\",\"type\":\"string\",\"x-speakeasy-cli-catalog\":{\"command\":\"models\",\"default\":\"gemini-4-hydrogen\",\"description\":\"Bare \\\"models\\\" prints the curated model list built into this CLI (offline, no request). The default model is used by \\\"agent run\\\" whenever the request body names neither \\\"model\\\" nor \\\"agent\\\". Use \\\"models list\\\" and \\\"models get\\\" for the live API's models and metadata.\",\"summary\":\"Show the curated offline model catalog; list/get query the live API\"},\"x-speakeasy-enum-descriptions\":[\"Gemma 4 26B A4B IT\",\"Gemma 4 31B IT\",\"Latest release of Gemini Flash\",\"Latest release of Gemini Flash-Lite\",\"Latest release of Gemini Pro\",\"Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets.\",\"Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks.\",\"Our smallest and most cost effective model, built for at scale usage.\",\"Gemini 3.5 Flash-Lite - Our fastest, most cost-effective 3.5 model for high-throughput execution.\",\"Our native image generation model, optimized for speed, flexibility, and contextual understanding. Text input and output is priced the same as 2.5 Flash.\",\"Our most intelligent model built for speed, combining frontier intelligence with superior search and grounding.\",\"Our latest SOTA reasoning model with unprecedented depth and nuance, and powerful multimodal understanding and coding capabilities.\",\"Gemini 3.1 Pro Preview optimized for custom tool usage\",\"Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processing.\",\"Gemini 3.1 Flash Lite Image.\",\"Gemini 3 Pro Image\",\"Gemini 3 Pro Image Preview\",\"Gemini 3.1 Flash Image.\",\"Gemini Nano Banana 2.1.\",\"Gemini 3.1 Flash TTS: Powerful, low-latency speech generation. Enjoy natural outputs, steerable prompts, and new expressive audio tags for precise narration control.\",\"Gemini 3.5 Flash - Our earlier Flash model, built for speed and foundational performance across routine, high-throughput workloads.\",\"Gemini 3.6 Flash - Our previous generation Flash model, balancing speed and multimodal capabilities across general agentic and everyday tasks.\",\"Gemini 3.7 Flash - Our high-speed, efficient Flash model built for everyday coding, agentic tool use, and reliable multi-step execution.\",\"Gemini 3.8 Flash - Our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows.\",\"Gemini 4 Argon - Our new frontier model, built to solve the hardest problems with depth and precision across real-world software engineering and knowledge work.\",\"Gemini 4 Carbon - Our most capable reasoning model, built for sustained agentic coding, multimodal knowledge work, scientific discovery, and cybersecurity defense.\",\"Gemini 4 Hydrogen - A model with frontier-level intelligence, built for fast, dependable execution across coding, agentic workflows, and multimodal knowledge work.\",\"Gemini 4 Neon - Frontier-level intelligence with fast end-to-end task completion across complex software engineering, analytical, and science workflows.\",\"Gemini 3.8 Flash TTS - Flagship TTS model for Voice Design and dual-speaker screenplay control. Prompt custom vocal personas, direct line-by-line delivery, and add vocal bursts.\",\"Gemini 3.8 Flash Lite TTS - High-speed and cost-efficient, ideal for rapid dubbing, media localization, and high-throughput voice agents. Direct replacement for gemini-3.1-flash-tts-preview.\",\"Gemini 3.5 Transcribe - Low-latency speech-to-text model with utterance-based language detection, speaker diarization, word-level timestamps, and custom vocabulary biasing.\",\"Our low-latency, music generation model optimized for high-fidelity audio clips and precise rhythmic control.\",\"Our advanced, full-song generative model with deep compositional understanding, optimized for precise structural control and complex transitions across diverse musical styles.\",\"Gemini Robotics-ER 1.6 Preview\",\"Gemini Robotics Embodied Reasoning 2 Preview\",\"Our flagship music generation model, optimized for full-length songs with complex structural coherence.\",\"Gemini Omni 1.2 Flash - Our latest multimodal model for fast, conversational video generation, editing, and cinematic control.\",\"Our high-performance multimodal model designed for fast, conversational video generation, editing, and cinematic control.\",\"Preview release of our multimodal model for conversational video generation, editing, and cinematic control.\"],\"x-speakeasy-enum-format\":\"union\",\"x-speakeasy-enum-groups\":{\"gemini-2.5-flash\":\"Gemini\",\"gemini-2.5-flash-image\":\"Image\",\"gemini-2.5-flash-lite\":\"Gemini\",\"gemini-2.5-pro\":\"Gemini\",\"gemini-3-flash-preview\":\"Gemini\",\"gemini-3-pro-image\":\"Image\",\"gemini-3.1-flash-image\":\"Image\",\"gemini-3.1-flash-lite\":\"Gemini\",\"gemini-3.1-flash-lite-image\":\"Image\",\"gemini-3.1-flash-tts-preview\":\"Speech\",\"gemini-3.1-pro-preview\":\"Gemini\",\"gemini-3.1-pro-preview-customtools\":\"Gemini\",\"gemini-3.5-flash\":\"Gemini\",\"gemini-3.5-flash-lite\":\"Gemini\",\"gemini-3.5-transcribe\":\"Speech\",\"gemini-3.6-flash\":\"Gemini\",\"gemini-3.7-flash\":\"Gemini\",\"gemini-3.8-flash\":\"Gemini\",\"gemini-3.8-flash-lite-tts\":\"Speech\",\"gemini-3.8-flash-tts\":\"Speech\",\"gemini-4-argon\":\"Gemini\",\"gemini-4-carbon\":\"Gemini\",\"gemini-4-hydrogen\":\"Gemini\",\"gemini-4-neon\":\"Gemini\",\"gemini-flash-latest\":\"Gemini\",\"gemini-flash-lite-latest\":\"Gemini\",\"gemini-nano-banana-2.1\":\"Image\",\"gemini-omni-1.1-flash\":\"Video\",\"gemini-omni-1.2-flash\":\"Video\",\"gemini-omni-flash-preview\":\"Video\",\"gemini-pro-latest\":\"Gemini\",\"gemini-robotics-er-1.6-preview\":\"Robotics\",\"gemini-robotics-er-2-preview\":\"Robotics\",\"gemma-4-26b-a4b-it\":\"Gemma\",\"gemma-4-31b-it\":\"Gemma\",\"lyria-3-clip-preview\":\"Music\",\"lyria-3-pro-preview\":\"Music\",\"lyria-3.5\":\"Music\",\"nano-banana-pro-preview\":\"Image\"},\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Model\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"Model\",\"x-speakeasy-unknown-values\":\"allow\"},\"ModelOutputStep\":{\"description\":\"Output generated by the model.\",\"example\":{\"content\":[{\"text\":\"The capital of France is Paris.\",\"type\":\"text\"}],\"type\":\"model_output\"},\"properties\":{\"content\":{\"items\":{\"$ref\":\"#/$defs/Content\"},\"type\":\"array\"},\"error\":{\"$ref\":\"#/$defs/Status\",\"deprecated\":true,\"description\":\"The error result of the operation in case of failure or cancellation.\"},\"type\":{\"const\":\"model_output\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"ModelOutputStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ModelOutputStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"PageProcessingOptions\":{\"description\":\"Processing options for paginated documents, such as PDFs, Office\\ndocuments, and presentations.\",\"properties\":{\"content_layers\":{\"description\":\"Optional. Content layers to extract from a paginated document.\",\"items\":{\"enum\":[\"page_image\",\"page_text\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"A rendered image of the page.\",\"The text of the page.\"]},\"type\":\"array\"},\"end_page\":{\"description\":\"Optional. 1-indexed end page, inclusive. Must be \\u003e= `start_page` if\\n`start_page` is set.\",\"format\":\"int32\",\"type\":\"integer\"},\"start_page\":{\"description\":\"Optional. 1-indexed start page, inclusive.\",\"format\":\"int32\",\"type\":\"integer\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"PageProcessingOptions\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ParallelAISearchConfig\":{\"description\":\"Used to specify configuration for ParallelAISearch.\",\"properties\":{\"api_key\":{\"description\":\"Optional. The API key for ParallelAiSearch.\",\"type\":\"string\",\"x-speakeasy-param-sensitive\":true},\"custom_config\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Optional. Custom configs for ParallelAiSearch.\",\"type\":\"object\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"PlaceCitation\":{\"description\":\"A place citation annotation.\",\"properties\":{\"end_index\":{\"description\":\"End of the attributed segment, exclusive.\",\"format\":\"int32\",\"type\":\"integer\"},\"name\":{\"description\":\"Title of the place.\",\"type\":\"string\"},\"place_id\":{\"description\":\"The ID of the place, in `places/{place_id}` format.\",\"type\":\"string\"},\"review_snippets\":{\"description\":\"Snippets of reviews that are used to generate answers about the\\nfeatures of a given place in Google Maps.\",\"items\":{\"$ref\":\"#/$defs/ReviewSnippet\"},\"type\":\"array\"},\"start_index\":{\"description\":\"Start of segment of the response that is attributed to this source.\\n\\nIndex indicates the start of the segment, measured in bytes.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"const\":\"place_citation\"},\"url\":{\"description\":\"URI reference of the place.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"PlaceCitation\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ProcessingCallStep\":{\"description\":\"A server-initiated processing step for media analysis (e.g. video\\nunderstanding).\",\"properties\":{\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"processing_call\"\x7d\x7d,\"required\":[\"id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ProcessingCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ProcessingResultStep\":{\"description\":\"The result of a server-initiated media processing step.\",\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"processing_result\"\x7d\x7d,\"required\":[\"call_id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ProcessingResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"RagResource\":{\"description\":\"The definition of the Rag resource.\",\"properties\":{\"rag_corpus\":{\"description\":\"Optional. RagCorpora resource name.\",\"type\":\"string\"},\"rag_file_ids\":{\"description\":\"Optional. rag_file_id. The files should be in the same rag_corpus set in\\nrag_corpus field.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"RagRetrievalConfig\":{\"description\":\"Specifies the context retrieval config.\",\"properties\":{\"filter\":{\"$ref\":\"#/$defs/Filter\",\"description\":\"Optional. Config for filters.\"},\"hybrid_search\":{\"$ref\":\"#/$defs/HybridSearch\",\"description\":\"Optional. Config for Hybrid Search.\"},\"ranking\":{\"$ref\":\"#/$defs/Ranking\",\"description\":\"Optional. Config for ranking and reranking.\"},\"top_k\":{\"description\":\"Optional. The number of contexts to retrieve.\",\"format\":\"int32\",\"type\":\"integer\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"RagStoreConfig\":{\"description\":\"Use to specify configuration for RAG Store.\",\"properties\":{\"rag_resources\":{\"description\":\"Optional. The representation of the rag source.\",\"items\":{\"$ref\":\"#/$defs/RagResource\"},\"type\":\"array\"},\"rag_retrieval_config\":{\"$ref\":\"#/$defs/RagRetrievalConfig\",\"description\":\"Optional. The retrieval config for the Rag query.\"},\"similarity_top_k\":{\"deprecated\":true,\"description\":\"Optional. Number of top k results to return from the selected corpora.\",\"format\":\"int32\",\"type\":\"integer\"},\"vector_distance_threshold\":{\"deprecated\":true,\"description\":\"Optional. Only return results with vector distance smaller than the threshold.\",\"format\":\"double\",\"type\":\"number\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"RankService\":{\"description\":\"Config for Rank Service.\",\"properties\":{\"model_name\":{\"description\":\"Optional. The model name of the rank service.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Ranking\":{\"description\":\"Config for ranking and reranking.\",\"properties\":{\"model_name\":{\"description\":\"Optional. The model name of the rank service.\",\"type\":\"string\"},\"rank_service\":{\"$ref\":\"#/$defs/RankService\",\"description\":\"Config for Rank Service.\"},\"ranking_config\":{\"const\":\"rank_service\"\x7d\x7d,\"required\":[\"ranking_config\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"ResponseFormat\":{\"oneOf\":[{\"$ref\":\"#/$defs/AudioResponseFormat\"},{\"$ref\":\"#/$defs/ImageResponseFormat\"},{\"$ref\":\"#/$defs/TextResponseFormat\"},{\"$ref\":\"#/$defs/VideoResponseFormat\"},{\"additionalProperties\":true,\"type\":\"object\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ResponseModality\":{\"enum\":[\"text\",\"image\",\"audio\",\"video\",\"document\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Indicates the model should return text.\",\"Indicates the model should return images.\",\"Indicates the model should return audio.\",\"Indicates the model should return video.\",\"Indicates the model should return documents.\"],\"x-speakeasy-model-namespace\":\"interactions\"},\"Retrieval\":{\"description\":\"A tool that can be used by the model to retrieve files.\",\"properties\":{\"exa_ai_search_config\":{\"$ref\":\"#/$defs/ExaAISearchConfig\",\"description\":\"Used to specify configuration for ExaAISearch.\"},\"parallel_ai_search_config\":{\"$ref\":\"#/$defs/ParallelAISearchConfig\",\"description\":\"Used to specify configuration for ParallelAISearch.\"},\"rag_store_config\":{\"$ref\":\"#/$defs/RagStoreConfig\",\"description\":\"Used to specify configuration for RagStore.\"},\"retrieval_types\":{\"description\":\"The types of file retrieval to enable.\",\"items\":{\"enum\":[\"vertex_ai_search\",\"rag_store\",\"exa_ai_search\",\"parallel_ai_search\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"\",\"\",\"\",\"\"]},\"type\":\"array\"},\"type\":{\"const\":\"retrieval\"},\"vertex_ai_search_config\":{\"$ref\":\"#/$defs/VertexAISearchConfig\",\"description\":\"Used to specify configuration for VertexAISearch.\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"RetrievalCallStep\":{\"description\":\"Retrieval call step.\\nUsed by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\\netc. RetrievalType decides which tool is used.\",\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/RetrievalStepArguments\",\"description\":\"Required. The arguments to pass to the retrieval tool.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"retrieval_type\":{\"description\":\"The type of retrieval tools.\",\"enum\":[\"vertex_ai_search\",\"rag_store\",\"exa_ai_search\",\"parallel_ai_search\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"\",\"\",\"\",\"\"]},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"retrieval_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"RetrievalCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"RetrievalResultStep\":{\"description\":\"Vertex Retrieval result step.\\nUsed by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\\netc.\",\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"is_error\":{\"description\":\"Whether the retrieval resulted in an error.\",\"type\":\"boolean\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"retrieval_result\"\x7d\x7d,\"required\":[\"call_id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"RetrievalResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"RetrievalStepArguments\":{\"description\":\"The arguments to pass to Retrieval tools.\",\"properties\":{\"queries\":{\"description\":\"Queries for Retrieval information.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"RetrievalCallArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"RetrievalCallArguments\"},\"ReviewSnippet\":{\"description\":\"Encapsulates a snippet of a user review that answers a question about\\nthe features of a specific place in Google Maps.\",\"properties\":{\"review_id\":{\"description\":\"The ID of the review snippet.\",\"type\":\"string\"},\"title\":{\"description\":\"Title of the review.\",\"type\":\"string\"},\"url\":{\"description\":\"A link that corresponds to the user review on Google Maps.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"SafetySetting\":{\"description\":\"A safety setting that affects the safety-blocking behavior.\\n\\nA SafetySetting consists of a\\nharm category and a\\nthreshold for that\\ncategory.\",\"properties\":{\"method\":{\"description\":\"Optional. The method for blocking content. If not specified, the default\\nbehavior is to use the probability score.\",\"enum\":[\"severity\",\"probability\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"The harm block method uses both probability and severity scores.\",\"The harm block method uses the probability score.\"]},\"threshold\":{\"description\":\"Required. The threshold for blocking content. If the harm probability\\nexceeds this threshold, the content will be blocked.\",\"enum\":[\"block_low_and_above\",\"block_medium_and_above\",\"block_only_high\",\"block_none\",\"off\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Block content with a low harm probability or higher.\",\"Block content with a medium harm probability or higher.\",\"Block content with a high harm probability.\",\"Do not block any content, regardless of its harm probability.\",\"Turn off the safety filter entirely.\"]},\"type\":{\"$ref\":\"#/$defs/HarmCategory\",\"description\":\"Required. The type of harm category to be blocked.\"\x7d\x7d,\"required\":[\"threshold\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"SafetySetting\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ServiceTier\":{\"enum\":[\"flex\",\"standard\",\"priority\",\"deferred\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Flex service tier.\",\"Standard service tier.\",\"Priority service tier.\",\"Deferred service tier.\"],\"x-speakeasy-model-namespace\":\"interactions\"},\"SmartTranscriptionMode\":{\"description\":\"Configuration for smart transcription mode.\",\"properties\":{\"source_text\":{\"description\":\"The source text to be edited or rewritten via voice instructions.\\nWhen provided, the model performs voice-driven editing and outputs the\\nfinalized replacement text.\",\"type\":\"string\"},\"type\":{\"const\":\"smart\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Source\":{\"description\":\"A source to be mounted into the environment.\",\"properties\":{\"content\":{\"description\":\"The inline content if `type` is `INLINE`.\",\"type\":\"string\"},\"encoding\":{\"description\":\"Optional encoding for inline content (e.g. `base64`).\",\"type\":\"string\"},\"source\":{\"description\":\"The source of the environment.\\nFor Cloud Storage, this is the Cloud Storage path.\\nFor GitHub, this is the GitHub path.\",\"type\":\"string\"},\"target\":{\"description\":\"Where the source should appear in the environment.\",\"type\":\"string\"},\"type\":{\"enum\":[\"gcs\",\"inline\",\"repository\",\"skill_registry\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"A Cloud Storage bucket.\",\"Inline content.\",\"A generic repository. The protocol prefix in the source URL\\nidentifies the provider (e.g., github://, gcs://).\",\"A skill resource from the Skill Registry Service.\\nSkill: projects/{project}/locations/{location}/skills/{skill}\\nSkillRevision:\\nprojects/{project}/locations/{location}/skills/{skill}/revisions/{revision}\\nSupport mounting all skills under a project:\\nprojects/{project}/locations/{location}/skills.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"SpeakerConfig\":{\"description\":\"Configuration for multi-speaker and speech generation.\",\"properties\":{\"speakers\":{\"description\":\"Individual speaker configurations.\",\"items\":{\"$ref\":\"#/$defs/SpeechConfig\"},\"type\":\"array\"},\"text_normalization\":{\"description\":\"Controls text normalization before speech synthesis.\",\"enum\":[\"auto\",\"enabled\",\"disabled\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Automatically determines whether to apply text normalization based on\\nthe model and speech mode.\",\"Enables text normalization for numbers, currencies, dates, and units.\",\"Disables text normalization for pre-normalized or phonetic inputs.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"SpeechAnnotation\":{\"description\":\"Speech annotation for text content.\",\"properties\":{\"end_index\":{\"description\":\"End of the attributed segment, exclusive.\",\"format\":\"int32\",\"type\":\"integer\"},\"speaker\":{\"description\":\"The speaker to associate with this turn.\",\"type\":\"string\"},\"start_index\":{\"description\":\"Start of segment of the response that is attributed to this source.\\n\\nIndex indicates the start of the segment, measured in bytes.\",\"format\":\"int32\",\"type\":\"integer\"},\"style\":{\"description\":\"Style instruction for the speech synthesis.\",\"type\":\"string\"},\"type\":{\"const\":\"speech_metadata\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"SpeechConfig\":{\"description\":\"The configuration for speech interaction.\",\"properties\":{\"language\":{\"description\":\"The language of the speech.\",\"type\":\"string\"},\"speaker\":{\"description\":\"The speaker's name, it should match the speaker name given in the prompt.\",\"type\":\"string\"},\"voice\":{\"description\":\"The voice of the speaker.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"SpeechConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"SpreadsheetProcessingOptions\":{\"description\":\"Processing options for spreadsheets.\",\"properties\":{\"content_layers\":{\"description\":\"Optional. Content layers to extract from a spreadsheet.\",\"items\":{\"enum\":[\"visual\",\"data\",\"formulas\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"A rendered image of the sheet.\",\"Cell values, merges, and formats.\",\"Formula expressions and their computed results.\"]},\"type\":\"array\"},\"sheet_index\":{\"description\":\"Optional. The 1-indexed index of the sheet to extract, in workbook\\norder. If not set, all sheets are extracted.\",\"format\":\"int32\",\"type\":\"integer\"},\"visible_cells\":{\"description\":\"Optional. The range of cells to extract, in A1 notation (e.g. \\\"A1:D10\\\").\\nIf not set, the full occupied area of the sheet is used.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"SpreadsheetProcessingOptions\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"StaticMediaProcessing\":{\"properties\":{\"content_layers\":{\"description\":\"Optional. Content layers to extract from the video.\",\"items\":{\"enum\":[\"frames\",\"audio\",\"transcript\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Frames of the video.\",\"Audio of the video.\",\"Transcript of the audio track.\"]},\"type\":\"array\"},\"end_offset\":{\"description\":\"Optional. Segment end time. Specified as a decimal number of seconds followed\\nby an 's' suffix, e.g., \\\"30s\\\". Must be non-negative and greater than\\n`start_offset` if `start_offset` is set.\",\"format\":\"google-duration\",\"type\":\"string\"},\"fps\":{\"description\":\"Optional. Video frame-rate sampling density.\",\"format\":\"double\",\"type\":\"number\"},\"start_offset\":{\"description\":\"Optional. Segment start time. Specified as a decimal number of seconds followed\\nby an 's' suffix, e.g., \\\"10.5s\\\". Must be non-negative.\",\"format\":\"google-duration\",\"type\":\"string\"},\"type\":{\"const\":\"static\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Status\":{\"description\":\"The `Status` type defines a logical error model that is suitable for\\ndifferent programming environments, including REST APIs and RPC APIs. It is\\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\\nthree pieces of data: error code, error message, and error details.\\n\\nYou can find out more about this error model and how to work with it in the\\n[API Design Guide](https://cloud.google.com/apis/design/errors).\",\"properties\":{\"code\":{\"description\":\"The status code, which should be an enum value of google.rpc.Code.\",\"format\":\"int32\",\"type\":\"integer\"},\"details\":{\"description\":\"A list of messages that carry the error details. There is a common set of\\nmessage types for APIs to use.\",\"items\":{\"additionalProperties\":{\"description\":\"Properties of the object. Contains field @type with type URL.\"},\"type\":\"object\"},\"type\":\"array\"},\"message\":{\"description\":\"A developer-facing error message, which should be in English. Any\\nuser-facing error message should be localized and sent in the\\ngoogle.rpc.Status.details field, or localized by the client.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Step\":{\"description\":\"A step in the interaction.\",\"oneOf\":[{\"$ref\":\"#/$defs/CodeExecutionCallStep\"},{\"$ref\":\"#/$defs/CodeExecutionResultStep\"},{\"$ref\":\"#/$defs/FileSearchCallStep\"},{\"$ref\":\"#/$defs/FileSearchResultStep\"},{\"$ref\":\"#/$defs/FunctionCallStep\"},{\"$ref\":\"#/$defs/FunctionResultStep\"},{\"$ref\":\"#/$defs/GoogleMapsCallStep\"},{\"$ref\":\"#/$defs/GoogleMapsResultStep\"},{\"$ref\":\"#/$defs/GoogleSearchCallStep\"},{\"$ref\":\"#/$defs/GoogleSearchResultStep\"},{\"$ref\":\"#/$defs/McpServerToolCallStep\"},{\"$ref\":\"#/$defs/McpServerToolResultStep\"},{\"$ref\":\"#/$defs/ModelOutputStep\"},{\"$ref\":\"#/$defs/ProcessingCallStep\"},{\"$ref\":\"#/$defs/ProcessingResultStep\"},{\"$ref\":\"#/$defs/RetrievalCallStep\"},{\"$ref\":\"#/$defs/RetrievalResultStep\"},{\"$ref\":\"#/$defs/ThoughtStep\"},{\"$ref\":\"#/$defs/ToolSearchCallStep\"},{\"$ref\":\"#/$defs/ToolSearchResultStep\"},{\"$ref\":\"#/$defs/UrlContextCallStep\"},{\"$ref\":\"#/$defs/UrlContextResultStep\"},{\"$ref\":\"#/$defs/UserInputStep\"}],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Step\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"TextContent\":{\"description\":\"A text content block.\",\"example\":{\"text\":\"Hello, how are you?\",\"type\":\"text\"},\"properties\":{\"annotations\":{\"description\":\"Citation information for model-generated content.\",\"items\":{\"$ref\":\"#/$defs/Annotation\"},\"type\":\"array\"},\"text\":{\"description\":\"Required. The text content.\",\"type\":\"string\"},\"type\":{\"const\":\"text\"\x7d\x7d,\"required\":[\"text\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Text\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"TextContent\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"TextResponseFormat\":{\"description\":\"Configuration for text output format.\",\"example\":{\"mime_type\":\"application/json\",\"schema\":{\"properties\":{\"ingredients\":{\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"recipe_name\":{\"type\":\"string\"\x7d\x7d,\"required\":[\"ingredients\",\"recipe_name\"],\"type\":\"object\"},\"type\":\"text\"},\"properties\":{\"mime_type\":{\"description\":\"The MIME type of the text output.\",\"enum\":[\"application/json\",\"text/plain\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"JSON output format.\",\"Plain text output format.\"]},\"schema\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"The JSON schema that the output should conform to. Only applicable when\\nmime_type is application/json.\\n\\nSupports a subset of JSON Schema. `minLength`, `maxLength`,\\n`minProperties`, `maxProperties`, `uniqueItems`, `contains`,\\n`minContains`, and `maxContains` are ignored and not enforced; validate\\nthese in your application. `minItems` and `maxItems` are enforced. Schemas\\nthat are too complex to enforce (for example, large `maxItems` on nested\\narrays) return a 400 INVALID_ARGUMENT error.\",\"type\":\"object\"},\"type\":{\"const\":\"text\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Text Output (JSON Schema)\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"TextResponseFormat\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ThinkingLevel\":{\"enum\":[\"minimal\",\"low\",\"medium\",\"high\",\"xhigh\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Little to no thinking.\",\"Low thinking level.\",\"Medium thinking level.\",\"High thinking level.\",\"Extra high thinking level, above `high`.\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ThinkingLevel\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ThinkingSummaries\":{\"enum\":[\"auto\",\"none\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Auto thinking summaries.\",\"No thinking summaries.\"],\"x-speakeasy-model-namespace\":\"interactions\"},\"ThoughtContent\":{\"oneOf\":[{\"$ref\":\"#/$defs/ImageContent\"},{\"$ref\":\"#/$defs/TextContent\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"ThoughtSummaryContent\"},\"ThoughtStep\":{\"description\":\"A thought step.\",\"example\":{\"signature\":\"thought_sig_abcd1234\",\"summary\":[{\"text\":\"The model is searching Google for the capital of France.\",\"type\":\"text\"}],\"type\":\"thought\"},\"properties\":{\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"summary\":{\"description\":\"A summary of the thought.\",\"items\":{\"$ref\":\"#/$defs/ThoughtContent\"},\"type\":\"array\"},\"type\":{\"const\":\"thought\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"ThoughtStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ThoughtStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"Tool\":{\"description\":\"A tool that can be used by the model.\",\"oneOf\":[{\"$ref\":\"#/$defs/CodeExecution\"},{\"$ref\":\"#/$defs/ComputerUse\"},{\"$ref\":\"#/$defs/FileSearch\"},{\"$ref\":\"#/$defs/Function\"},{\"$ref\":\"#/$defs/GoogleMaps\"},{\"$ref\":\"#/$defs/GoogleSearch\"},{\"$ref\":\"#/$defs/McpServer\"},{\"$ref\":\"#/$defs/Retrieval\"},{\"$ref\":\"#/$defs/ToolSearch\"},{\"$ref\":\"#/$defs/UrlContext\"}],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Tool\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolChoiceConfig\":{\"description\":\"The tool choice configuration containing allowed tools.\",\"example\":{\"allowed_tools\":{\"mode\":\"any\",\"tools\":[\"my_tool\"]\x7d\x7d,\"properties\":{\"allowed_tools\":{\"$ref\":\"#/$defs/AllowedTools\",\"description\":\"The allowed tools.\"\x7d\x7d,\"type\":\"object\",\"x-example-summaries\":[\"Allowed Tools\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ToolChoiceConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolChoiceType\":{\"enum\":[\"auto\",\"any\",\"none\",\"validated\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Auto tool choice.\",\"Any tool choice.\",\"No tool choice.\",\"Validated tool choice.\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ToolChoiceType\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolSearch\":{\"description\":\"A tool that allows the model to dynamically search for and load tools into\\nthe model’s context on demand. This allows clients to avoid loading all tool\\ndefinitions up front and may help reduce overall token usage and cost.\",\"properties\":{\"description\":{\"description\":\"A description of the function. To be set only for client-side execution.\",\"type\":\"string\"},\"execution\":{\"description\":\"The execution mode of the tool search.\",\"enum\":[\"server\",\"client\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Server-side execution mode. Default.\",\"Client-side execution mode.\"]},\"name\":{\"description\":\"The name of the function. To be set only for client-side execution.\",\"type\":\"string\"},\"parameters\":{\"description\":\"The JSON Schema for the function's parameters. To be set only for\\nclient-side execution.\"},\"type\":{\"const\":\"tool_search\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolSearchCallStep\":{\"description\":\"Tool search call step.\",\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/ToolSearchCallStepArguments\",\"description\":\"Required. The arguments for tool search.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"tool_search_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ToolSearchCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolSearchCallStepArguments\":{\"properties\":{\"function_names\":{\"description\":\"List of function names to load explicitly.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ToolSearchCallStepArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"ToolSearchResultStep\":{\"description\":\"Tool search result step.\",\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"result\":{\"description\":\"The retrieved function definitions.\",\"items\":{\"$ref\":\"#/$defs/Function\"},\"type\":\"array\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"tool_search_result\"\x7d\x7d,\"required\":[\"call_id\",\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"ToolSearchResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"TranscriptionConfig\":{\"description\":\"Configuration for speech recognition (transcription).\",\"properties\":{\"adaptation_phrases\":{\"deprecated\":true,\"description\":\"Optional. A list of phrases to bias the ASR model towards.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"custom_vocabulary\":{\"description\":\"Optional. A list of custom vocabulary phrases to bias the speech recognition model\\ntoward recognizing specific terms.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"diarization_mode\":{\"deprecated\":true,\"description\":\"Optional. Configures speaker diarization. Supported values: \\\"speaker\\\".\",\"type\":\"string\"},\"language_codes\":{\"description\":\"Optional. BCP-47 language codes providing hints about the languages present in the\\naudio. If omitted or empty, defaults to automatic language detection.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"language_hints\":{\"deprecated\":true,\"description\":\"Deprecated: use language_codes. BCP-47 language codes providing hints about the languages present in the audio.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"mode\":{\"description\":\"Discriminated transcription mode options or enum.\",\"oneOf\":[{\"$ref\":\"#/$defs/TranscriptionMode\"},{\"enum\":[\"verbatim\",\"smart\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Verbatim transcription mode.\",\"Smart transcription mode.\"]}],\"title\":\"TranscriptionConfigMode\"},\"timestamp_granularities\":{\"deprecated\":true,\"description\":\"Optional. The granularity of timestamps to include in the transcription output.\\nSupported values: \\\"word\\\". If empty, no timestamps are generated.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"TranscriptionConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"TranscriptionMode\":{\"description\":\"Configuration for transcription mode.\",\"oneOf\":[{\"$ref\":\"#/$defs/SmartTranscriptionMode\"},{\"$ref\":\"#/$defs/VerbatimTranscriptionMode\"}],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"TranscriptionMode\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"UrlCitation\":{\"description\":\"A URL citation annotation.\",\"properties\":{\"end_index\":{\"description\":\"End of the attributed segment, exclusive.\",\"format\":\"int32\",\"type\":\"integer\"},\"start_index\":{\"description\":\"Start of segment of the response that is attributed to this source.\\n\\nIndex indicates the start of the segment, measured in bytes.\",\"format\":\"int32\",\"type\":\"integer\"},\"title\":{\"description\":\"The title of the URL.\",\"type\":\"string\"},\"type\":{\"const\":\"url_citation\"},\"url\":{\"description\":\"The URL.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"URLCitation\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLCitation\"},\"UrlContext\":{\"description\":\"A tool that can be used by the model to fetch URL context.\",\"properties\":{\"type\":{\"const\":\"url_context\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLContext\"},\"UrlContextCallArguments\":{\"description\":\"The arguments to pass to the URL context.\",\"properties\":{\"urls\":{\"description\":\"The URLs to fetch.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"URLContextCallArguments\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLContextCallArguments\"},\"UrlContextCallStep\":{\"description\":\"URL context call step.\",\"example\":{\"arguments\":{\"urls\":[\"https://www.example.com\"]},\"id\":\"url_call_10219\",\"type\":\"url_context_call\"},\"properties\":{\"arguments\":{\"$ref\":\"#/$defs/UrlContextCallArguments\",\"description\":\"Required. The arguments to pass to the URL context.\"},\"id\":{\"description\":\"Required. A unique ID for this specific tool call.\",\"type\":\"string\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"url_context_call\"\x7d\x7d,\"required\":[\"arguments\",\"id\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"UrlContextCallStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"URLContextCallStep\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLContextCallStep\"},\"UrlContextResult\":{\"description\":\"The result of the URL context.\",\"properties\":{\"status\":{\"description\":\"The status of the URL retrieval.\",\"enum\":[\"success\",\"error\",\"paywall\",\"unsafe\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Url retrieval is successful.\",\"Url retrieval is failed due to error.\",\"Url retrieval is failed because the content is behind paywall.\",\"Url retrieval is failed because the content is unsafe.\"]},\"url\":{\"description\":\"The URL that was fetched.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"URLContextResult\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLContextResult\"},\"UrlContextResultStep\":{\"description\":\"URL context result step.\",\"example\":{\"call_id\":\"url_call_10219\",\"result\":[{\"status\":\"success\",\"url\":\"https://www.example.com\"}],\"type\":\"url_context_result\"},\"properties\":{\"call_id\":{\"description\":\"Required. ID to match the ID from the function call block.\",\"type\":\"string\"},\"is_error\":{\"description\":\"Whether the URL context resulted in an error.\",\"type\":\"boolean\"},\"result\":{\"description\":\"Required. The results of the URL context.\",\"items\":{\"$ref\":\"#/$defs/UrlContextResult\"},\"type\":\"array\"},\"signature\":{\"description\":\"A signature hash for backend validation.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"type\":{\"const\":\"url_context_result\"\x7d\x7d,\"required\":[\"call_id\",\"result\",\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"UrlContextResultStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"URLContextResultStep\"}],\"x-speakeasy-model-namespace\":\"interactions\",\"x-speakeasy-name-override\":\"URLContextResultStep\"},\"UserInputStep\":{\"description\":\"Input provided by the user.\",\"example\":{\"content\":[{\"text\":\"What is the capital of France?\",\"type\":\"text\"}],\"type\":\"user_input\"},\"properties\":{\"content\":{\"items\":{\"$ref\":\"#/$defs/Content\"},\"title\":\"ContentList\",\"type\":\"array\"},\"type\":{\"const\":\"user_input\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"UserInputStep\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"UserInputStep\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"VerbatimTranscriptionMode\":{\"description\":\"Configuration for verbatim transcription mode.\",\"properties\":{\"diarization_mode\":{\"description\":\"Optional. Configures speaker diarization. Supported values: \\\"speaker\\\".\",\"type\":\"string\"},\"timestamp_granularities\":{\"description\":\"Optional. The granularity of timestamps to include in the transcription output.\\nSupported values: \\\"word\\\". If empty, no timestamps are generated.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"type\":{\"const\":\"verbatim\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"VertexAISearchConfig\":{\"description\":\"Used to specify configuration for VertexAISearch.\",\"properties\":{\"datastores\":{\"description\":\"Optional. Used to specify Vertex AI Search datastores.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"engine\":{\"description\":\"Optional. Used to specify Vertex AI Search engine.\",\"type\":\"string\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"VideoConfig\":{\"description\":\"Configuration options for video generation.\",\"properties\":{\"task\":{\"description\":\"Optional task mode for video generation. If not specified, the model\\nautomatically determines the appropriate mode based on the provided text\\nprompt and input media.\",\"enum\":[\"text_to_video\",\"image_to_video\",\"reference_to_video\",\"edit\",\"extend\",\"upscale\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Generates video solely from a text prompt.\",\"Generates video from one or two source images. The first image defines\\nthe starting frame, and the optional second image defines the ending\\nframe.\",\"Generates video using reference media (such as images or video).\",\"Modifies an existing input video.\",\"Extends an existing input video.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"VideoConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"VideoContent\":{\"description\":\"A video content block.\",\"example\":{\"type\":\"video\",\"uri\":\"https://www.youtube.com/watch?v=9hE5-98ZeCg\"},\"properties\":{\"data\":{\"description\":\"The video content.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"mime_type\":{\"description\":\"The mime type of the video.\",\"enum\":[\"video/mp4\",\"video/mpeg\",\"video/mpg\",\"video/mov\",\"video/avi\",\"video/x-flv\",\"video/webm\",\"video/wmv\",\"video/3gpp\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"MP4 video format\",\"MPEG video format\",\"MPG video format\",\"MOV video format\",\"AVI video format\",\"FLV video format\",\"WebM video format\",\"WMV video format\",\"3GPP video format\"]},\"name\":{\"description\":\"A user-defined name for this content block. Can be referenced by the model\\nin the final response.\",\"type\":\"string\"},\"processing\":{\"description\":\"How the model processes this video for understanding.\",\"oneOf\":[{\"$ref\":\"#/$defs/MediaProcessing\"},{\"enum\":[\"static\",\"agentic\"],\"title\":\"processing_enum\",\"type\":\"string\",\"x-google-enum-descriptions\":[\"Fixed-rate frame extraction. All frames placed in context.\",\"Model-driven dynamic navigation.\"]}],\"title\":\"Processing\"},\"resolution\":{\"$ref\":\"#/$defs/MediaResolution\",\"description\":\"The resolution of the media.\"},\"type\":{\"const\":\"video\"},\"uri\":{\"description\":\"The URI of the video.\",\"type\":\"string\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Video\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"VideoContent\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"VideoResponseFormat\":{\"description\":\"Configuration for video output format.\",\"example\":{\"aspect_ratio\":\"16:9\",\"delivery\":\"inline\",\"type\":\"video\"},\"properties\":{\"aspect_ratio\":{\"description\":\"The aspect ratio for the video output.\",\"enum\":[\"16:9\",\"9:16\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"16:9 aspect ratio.\",\"9:16 aspect ratio.\"]},\"delivery\":{\"description\":\"The delivery mode for the video output.\",\"enum\":[\"inline\",\"uri\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Video data is returned inline in the response.\",\"Video data is returned as a URI.\"]},\"duration\":{\"description\":\"The duration for the video output.\",\"format\":\"google-duration\",\"type\":\"string\"},\"gcs_uri\":{\"description\":\"The Cloud Storage URI to store the video output. Required for Vertex if\\ndelivery mode is URI.\",\"type\":\"string\"},\"resolution\":{\"description\":\"The video output resolution. Defaults to 720p.\",\"enum\":[\"360p\",\"720p\",\"1080p\",\"4k\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"360p resolution.\",\"720p resolution.\",\"1080p resolution.\",\"4K resolution.\"]},\"type\":{\"const\":\"video\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-example-summaries\":[\"Video Output\"],\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"VideoResponseFormat\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"WebhookConfig\":{\"description\":\"Message for configuring webhook events for a request.\",\"properties\":{\"uris\":{\"description\":\"Optional. If set, these webhook URIs will be used for webhook events instead of the\\nregistered webhooks.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"user_metadata\":{\"additionalProperties\":{\"description\":\"Properties of the object.\"},\"description\":\"Optional. The user metadata that will be returned on each event emission to the\\nwebhooks.\",\"type\":\"object\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"WebhookConfig\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"WordInfo\":{\"description\":\"Word-level ASR annotation for transcription output.\\nCarries the word text, optional timing, and optional speaker attribution.\",\"properties\":{\"end_index\":{\"description\":\"End of the attributed segment, exclusive.\",\"format\":\"int32\",\"type\":\"integer\"},\"end_offset\":{\"description\":\"End offset in time of the word relative to the start of the audio.\\nPresent when timestamp_granularities contains \\\"word\\\".\",\"format\":\"google-duration\",\"type\":\"string\"},\"speaker\":{\"description\":\"Optional. Speaker label for this word (e.g. \\\"spk_1\\\", \\\"spk_2\\\").\\nPresent when diarization_mode is set in TranscriptionConfig.\",\"type\":\"string\"},\"start_index\":{\"description\":\"Start of segment of the response that is attributed to this source.\\n\\nIndex indicates the start of the segment, measured in bytes.\",\"format\":\"int32\",\"type\":\"integer\"},\"start_offset\":{\"description\":\"Start offset in time of the word relative to the start of the audio.\\nPresent when timestamp_granularities contains \\\"word\\\".\",\"format\":\"google-duration\",\"type\":\"string\"},\"text\":{\"description\":\"The transcribed word.\",\"type\":\"string\"},\"type\":{\"const\":\"word_info\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"WordInfo\"}],\"x-speakeasy-model-namespace\":\"interactions\"\x7d\x7d,\"$ref\":\"#/$defs/ModelInteraction\",\"$schema\":\"https://json-schema.org/draft/2020-12/schema\"}", - "CreateVoice": "{\"$defs\":{\"AudioData\":{\"description\":\"Audio payload used for voice creation.\",\"properties\":{\"data\":{\"description\":\"Required. The raw audio bytes.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"mime_type\":{\"description\":\"Required. The IANA MIME type of the audio data (for example, `audio/wav` or\\n`audio/mpeg`).\",\"type\":\"string\"\x7d\x7d,\"required\":[\"data\",\"mime_type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"AudioData\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"CreateVoiceRequest\":{\"description\":\"Request for creating a voice.\",\"properties\":{\"store\":{\"description\":\"Persist the voice on the server and return a reusable voice_\\u003cid\\u003e (required for prompted voices; expires after 1y of inactivity and counts toward project quota; false returns a client-side voicekey_)\",\"type\":\"boolean\"},\"voice\":{\"$ref\":\"#/$defs/Voice\",\"description\":\"Required. The voice to create.\\n`voice.model` is optional; if omitted, the service selects the default\\nvoice creation model. Output-only fields on `Voice` (`id`, `key`,\\n`expire_time`, `usage`) are ignored if set.\"\x7d\x7d,\"required\":[\"voice\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"CreateVoiceRequest\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"GroundingToolCount\":{\"description\":\"The number of grounding tool counts.\",\"properties\":{\"count\":{\"description\":\"The number of grounding tool counts.\",\"format\":\"int32\",\"type\":\"integer\"},\"type\":{\"description\":\"The grounding tool type associated with the count.\",\"enum\":[\"google_search\",\"google_maps\",\"retrieval\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Grounding with Google Web Search and Image Search, \\u0026 Web Grounding\\nfor Enterprise.\",\"Grounding with Google Maps.\",\"Grounding with customer's data, for example, VertexAISearch.\"]\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"ModalityTokens\":{\"description\":\"The token count for a single response modality.\",\"properties\":{\"modality\":{\"$ref\":\"#/$defs/ResponseModality\",\"description\":\"The modality associated with the token count.\"},\"tokens\":{\"description\":\"Number of tokens for the modality.\",\"format\":\"int32\",\"type\":\"integer\"\x7d\x7d,\"type\":\"object\",\"x-speakeasy-model-namespace\":\"interactions\"},\"Pitch\":{\"enum\":[\"low\",\"medium\",\"high\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Lower pitch voice.\",\"Medium pitch voice.\",\"Higher pitch voice.\"],\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"Pitch\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"PromptedVoice\":{\"description\":\"Parameters for prompted voice generation.\\nRequired when creating a voice with `type` `\\\"prompted\\\"`. Returned when\\ncreating, getting, or listing prompted voices.\",\"properties\":{\"base_voice\":{\"description\":\"Optional. The name or ID of an existing base voice to edit or remix.\\nUse the voice name for prebuilt voices (e.g., `Puck`) or the voice ID for\\npreviously created voices (e.g., `voice_abc123`). This can be any\\nprompted or replicated voice that the user has access to.\\nWhen present, `input` describes relative alterations to make to the base\\nvoice.\",\"type\":\"string\"},\"input\":{\"description\":\"Required. The natural-language prompt describing the desired voice, e.g.\\n\\\"A deep, booming male voice of a massive evil ogre in his middle years.\\\"\",\"type\":\"string\"\x7d\x7d,\"required\":[\"input\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"PromptedVoice\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"ReplicatedVoice\":{\"description\":\"Input only. Parameters for replicated voice generation.\\nRequired on input when `type` is `\\\"replicated\\\"`. Not returned in\\nresponses.\",\"properties\":{\"consent_audio\":{\"$ref\":\"#/$defs/AudioData\",\"description\":\"Required. Audio recording of the same speaker reading the required\\nconsent phrase, confirming authorization to replicate the voice.\"},\"source_audio\":{\"$ref\":\"#/$defs/AudioData\",\"description\":\"Required. The reference audio sample of the speaker's voice to replicate.\\nMust be an unmodified recording of an adult human voice.\"\x7d\x7d,\"required\":[\"consent_audio\",\"source_audio\"],\"type\":\"object\",\"writeOnly\":true,\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"ReplicatedVoice\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"ResponseModality\":{\"enum\":[\"text\",\"image\",\"audio\",\"video\",\"document\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Indicates the model should return text.\",\"Indicates the model should return images.\",\"Indicates the model should return audio.\",\"Indicates the model should return video.\",\"Indicates the model should return documents.\"],\"x-speakeasy-model-namespace\":\"interactions\"},\"Usage\":{\"description\":\"Statistics on the interaction request's token usage.\",\"properties\":{\"cached_tokens_by_modality\":{\"description\":\"A breakdown of cached token usage by modality.\",\"items\":{\"$ref\":\"#/$defs/ModalityTokens\"},\"type\":\"array\"},\"grounding_tool_count\":{\"description\":\"Grounding tool count.\",\"items\":{\"$ref\":\"#/$defs/GroundingToolCount\"},\"type\":\"array\"},\"initial_input_tokens\":{\"description\":\"Number of input tokens used in the first turn of this interaction.\",\"format\":\"int32\",\"type\":\"integer\"},\"input_tokens_by_modality\":{\"description\":\"A breakdown of input token usage by modality.\",\"items\":{\"$ref\":\"#/$defs/ModalityTokens\"},\"type\":\"array\"},\"output_tokens_by_modality\":{\"description\":\"A breakdown of output token usage by modality.\",\"items\":{\"$ref\":\"#/$defs/ModalityTokens\"},\"type\":\"array\"},\"tool_use_tokens_by_modality\":{\"description\":\"A breakdown of tool-use token usage by modality.\",\"items\":{\"$ref\":\"#/$defs/ModalityTokens\"},\"type\":\"array\"},\"total_cached_tokens\":{\"description\":\"Number of tokens in the cached part of the prompt (the cached content).\",\"format\":\"int32\",\"type\":\"integer\"},\"total_input_tokens\":{\"description\":\"Number of tokens in the prompt (context).\",\"format\":\"int32\",\"type\":\"integer\"},\"total_output_tokens\":{\"description\":\"Total number of tokens across all the generated responses.\",\"format\":\"int32\",\"type\":\"integer\"},\"total_thought_tokens\":{\"description\":\"Number of tokens of thoughts for thinking models.\",\"format\":\"int32\",\"type\":\"integer\"},\"total_tokens\":{\"description\":\"Total token count for the interaction request (prompt + responses + other\\ninternal tokens).\",\"format\":\"int32\",\"type\":\"integer\"},\"total_tool_use_tokens\":{\"description\":\"Number of tokens present in tool-use prompt(s).\",\"format\":\"int32\",\"type\":\"integer\"\x7d\x7d,\"readOnly\":true,\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"interactions\",\"name\":\"Usage\"}],\"x-speakeasy-model-namespace\":\"interactions\"},\"Voice\":{\"description\":\"A custom (\\\"prompted\\\" or \\\"replicated\\\") or prebuilt voice resource.\",\"properties\":{\"accent\":{\"description\":\"Optional. Regional accent descriptor (e.g. \\\"American\\\", \\\"British\\\").\",\"type\":\"string\"},\"context\":{\"description\":\"Optional. Optimal usage context or domain (e.g. \\\"Conversational\\\",\\n\\\"Audiobook\\\", \\\"News\\\").\",\"type\":\"string\"},\"description\":{\"description\":\"Optional. Descriptive summary of vocal timbre, personality, and tone.\",\"type\":\"string\"},\"display_name\":{\"description\":\"Optional. User-provided display name for a stored voice (`store = true`),\\nor the catalog name for a prebuilt voice.\",\"type\":\"string\"},\"gender\":{\"description\":\"Optional. Perceived voice gender presentation (e.g. \\\"female\\\", \\\"male\\\",\\n\\\"neutral\\\").\",\"type\":\"string\"},\"language_code\":{\"description\":\"Optional. Primary BCP-47 language tag (e.g. \\\"en-US\\\", \\\"fr-FR\\\").\",\"type\":\"string\"},\"model\":{\"description\":\"Optional. The model used to design or replicate the voice.\\nIf omitted when creating a voice, defaults to the latest supported voice\\ndesign model. Returned when creating, getting, or listing custom voices\\n(`\\\"prompted\\\"` and `\\\"replicated\\\"`); unset for `\\\"prebuilt\\\"`\\nvoices. Created voices can be synthesized across any supported TTS\\nsynthesis model.\",\"type\":\"string\"},\"persona\":{\"description\":\"Optional. Intended persona or character archetype (e.g. \\\"Warm, Friendly\\\",\\n\\\"Narrator\\\").\",\"type\":\"string\"},\"pitch\":{\"$ref\":\"#/$defs/Pitch\",\"description\":\"Optional. Voice pitch classification.\"},\"prompted\":{\"$ref\":\"#/$defs/PromptedVoice\",\"description\":\"Parameters for prompted voice generation.\\nRequired when creating a voice with `type` `\\\"prompted\\\"`. Returned when\\ncreating, getting, or listing prompted voices.\"},\"region_code\":{\"description\":\"Optional. ISO 3166-1 alpha-2 or UN M.49 geographic region code (e.g. \\\"US\\\",\\n\\\"GB\\\", \\\"001\\\").\",\"type\":\"string\"},\"replicated\":{\"$ref\":\"#/$defs/ReplicatedVoice\",\"description\":\"Input only. Parameters for replicated voice generation.\\nRequired on input when `type` is `\\\"replicated\\\"`. Not returned in\\nresponses.\",\"writeOnly\":true},\"type\":{\"$ref\":\"#/$defs/VoiceType\",\"description\":\"Required. The type of the voice. When creating a voice, must be\\n`\\\"replicated\\\"` or `\\\"prompted\\\"`. When listing voices, may also be\\n`\\\"prebuilt\\\"`.\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"Voice\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"VoiceType\":{\"enum\":[\"replicated\",\"prompted\",\"prebuilt\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"A custom voice replicated from a reference audio sample and speaker consent\\nrecording.\",\"A custom voice generated from a natural-language text prompt (optionally\\nediting or remixing a `base_voice`).\",\"A built-in system voice from Google's voice catalog (e.g., `Puck`,\\n`Charon`). Returned in responses; cannot be specified as the type when\\ncreating a voice.\"],\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"VoiceType\"}],\"x-speakeasy-model-namespace\":\"voices\"\x7d\x7d,\"$ref\":\"#/$defs/CreateVoiceRequest\",\"$schema\":\"https://json-schema.org/draft/2020-12/schema\"}", + "CreateVoice": "{\"$defs\":{\"AudioData\":{\"description\":\"Audio payload used for voice creation.\",\"properties\":{\"data\":{\"description\":\"Required. The raw audio bytes.\",\"format\":\"byte\",\"type\":\"string\",\"x-speakeasy-base64-input-mode\":\"file\"},\"mime_type\":{\"description\":\"Required. The IANA MIME type of the audio data (for example, `audio/wav` or\\n`audio/mpeg`).\",\"type\":\"string\"\x7d\x7d,\"required\":[\"data\",\"mime_type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"AudioData\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"Pitch\":{\"enum\":[\"low\",\"medium\",\"high\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"Lower pitch voice.\",\"Medium pitch voice.\",\"Higher pitch voice.\"],\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"Pitch\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"PromptedVoice\":{\"description\":\"Parameters for prompted voice generation.\\nRequired when creating a voice with `type` `\\\"prompted\\\"`. Returned when\\ncreating, getting, or listing prompted voices.\",\"properties\":{\"base_voice\":{\"description\":\"Optional. The name or ID of an existing base voice to edit or remix.\\nUse the voice name for prebuilt voices (e.g., `Puck`) or the voice ID for\\npreviously created voices (e.g., `voice_abc123`). This can be any\\nprompted or replicated voice that the user has access to.\\nWhen present, `input` describes relative alterations to make to the base\\nvoice.\",\"type\":\"string\"},\"input\":{\"description\":\"Required. The natural-language prompt describing the desired voice, e.g.\\n\\\"A deep, booming male voice of a massive evil ogre in his middle years.\\\"\",\"type\":\"string\"\x7d\x7d,\"required\":[\"input\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"PromptedVoice\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"ReplicatedVoice\":{\"description\":\"Input only. Parameters for replicated voice generation.\\nRequired on input when `type` is `\\\"replicated\\\"`. Not returned in\\nresponses.\",\"properties\":{\"consent_audio\":{\"$ref\":\"#/$defs/AudioData\",\"description\":\"Required. Audio recording of the same speaker reading the required\\nconsent phrase, confirming authorization to replicate the voice.\"},\"source_audio\":{\"$ref\":\"#/$defs/AudioData\",\"description\":\"Required. The reference audio sample of the speaker's voice to replicate.\\nMust be an unmodified recording of an adult human voice.\"\x7d\x7d,\"required\":[\"consent_audio\",\"source_audio\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"ReplicatedVoice\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"VoiceCreateParams\":{\"description\":\"Parameters for creating a custom voice.\",\"properties\":{\"accent\":{\"description\":\"Regional accent descriptor (e.g. American, British)\",\"type\":\"string\"},\"context\":{\"description\":\"Intended usage context (e.g. Conversational, Audiobook, News)\",\"type\":\"string\"},\"description\":{\"description\":\"Descriptive summary of vocal timbre, personality, and tone\",\"type\":\"string\"},\"display_name\":{\"description\":\"User-provided display name for a stored voice (--store=true)\",\"type\":\"string\"},\"gender\":{\"description\":\"Perceived gender presentation (e.g. female, male, neutral)\",\"type\":\"string\"},\"language_code\":{\"description\":\"Primary BCP-47 language tag (e.g. en-US, fr-FR)\",\"type\":\"string\"},\"model\":{\"description\":\"Voice creation model (defaults to the service default if omitted)\",\"type\":\"string\"},\"persona\":{\"description\":\"Intended persona or archetype (e.g. Warm, Friendly, Narrator)\",\"type\":\"string\"},\"pitch\":{\"$ref\":\"#/$defs/Pitch\",\"description\":\"Optional. Voice pitch classification.\"},\"prompted\":{\"$ref\":\"#/$defs/PromptedVoice\",\"description\":\"JSON prompted voice parameters (required when --type=prompted)\"},\"region_code\":{\"description\":\"ISO 3166-1 alpha-2 or UN M.49 region code (e.g. US, GB, 001)\",\"type\":\"string\"},\"replicated\":{\"$ref\":\"#/$defs/ReplicatedVoice\",\"description\":\"JSON replicated voice parameters (required when --type=replicated)\"},\"store\":{\"description\":\"Persist the voice on the server and return a reusable voice_\\u003cid\\u003e (required for prompted voices; expires after 1y of inactivity and counts toward project quota; false returns a client-side voicekey_)\",\"type\":\"boolean\"},\"type\":{\"$ref\":\"#/$defs/VoiceType\",\"description\":\"Required. The type of the voice. Must be `\\\"replicated\\\"` or `\\\"prompted\\\"`.\"\x7d\x7d,\"required\":[\"type\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"VoiceCreateParams\",\"representation\":\"input\"}],\"x-speakeasy-model-namespace\":\"voices\"},\"VoiceType\":{\"enum\":[\"replicated\",\"prompted\",\"prebuilt\"],\"type\":\"string\",\"x-google-enum-descriptions\":[\"A custom voice replicated from a reference audio sample and speaker consent\\nrecording.\",\"A custom voice generated from a natural-language text prompt (optionally\\nediting or remixing a `base_voice`).\",\"A built-in system voice from Google's voice catalog (e.g., `Puck`,\\n`Charon`). Returned in responses; cannot be specified as the type when\\ncreating a voice.\"],\"x-speakeasy-exports\":[{\"group\":\"voices\",\"name\":\"VoiceType\"}],\"x-speakeasy-model-namespace\":\"voices\"\x7d\x7d,\"$ref\":\"#/$defs/VoiceCreateParams\",\"$schema\":\"https://json-schema.org/draft/2020-12/schema\"}", "CreateWebhook": "{\"$defs\":{\"SigningSecret\":{\"description\":\"Represents a signing secret used to verify webhook payloads.\",\"properties\":{},\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"webhooks\",\"name\":\"SigningSecret\"}],\"x-speakeasy-model-namespace\":\"webhooks\"},\"Webhook\":{\"description\":\"A Webhook resource.\",\"properties\":{\"name\":{\"description\":\"Optional. The user-provided name of the webhook.\",\"example\":\"MyBatchWebhook\",\"type\":\"string\"},\"subscribed_events\":{\"description\":\"Required. The events that the webhook is subscribed to.\",\"example\":[\"batch.succeeded\",\"batch.failed\"],\"items\":{\"enum\":[\"batch.succeeded\",\"batch.expired\",\"batch.failed\",\"interaction.requires_action\",\"interaction.completed\",\"interaction.failed\",\"video.generated\"],\"type\":\"string\",\"x-speakeasy-enum-descriptions\":[\"Batch processing finished successfully.\",\"Batch has not been processed within the 48h timeframe.\",\"Batch job failed.\",\"Interaction requires action (e.g., function calling).\",\"Interaction completed successfully.\",\"Interaction failed.\",\"Video generation completed.\"],\"x-speakeasy-enum-format\":\"union\",\"x-speakeasy-unknown-values\":\"allow\"},\"type\":\"array\"},\"uri\":{\"description\":\"Required. The URI to which webhook events will be sent.\",\"example\":\"https://my-api.com/gemini-callback\",\"type\":\"string\"\x7d\x7d,\"required\":[\"subscribed_events\",\"uri\"],\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"webhooks\",\"name\":\"Webhook\"},{\"group\":\"webhooks\",\"name\":\"WebhookInput\",\"representation\":\"input\"}],\"x-speakeasy-model-namespace\":\"webhooks\"\x7d\x7d,\"$ref\":\"#/$defs/Webhook\",\"$schema\":\"https://json-schema.org/draft/2020-12/schema\"}", "FilesRegister": "{\"$defs\":{\"GenAIRegisterFilesRequest\":{\"description\":\"Request for `RegisterFiles`.\",\"properties\":{\"uris\":{\"description\":\"Required. The gs:// URIs of the Google Cloud Storage objects to register.\",\"example\":[\"gs://bucket/object\"],\"items\":{\"type\":\"string\"},\"minItems\":1,\"type\":\"array\"\x7d\x7d,\"required\":[\"uris\"],\"type\":\"object\",\"x-speakeasy-model-namespace\":\"genai\",\"x-speakeasy-name-override\":\"RegisterFilesRequest\"\x7d\x7d,\"$ref\":\"#/$defs/GenAIRegisterFilesRequest\",\"$schema\":\"https://json-schema.org/draft/2020-12/schema\"}", "PingWebhook": "{\"$defs\":{\"PingWebhookRequest\":{\"description\":\"Request for pinging a webhook.\",\"properties\":{},\"type\":\"object\",\"x-speakeasy-exports\":[{\"group\":\"webhooks\",\"name\":\"WebhookPingParams\",\"representation\":\"input\"}],\"x-speakeasy-model-namespace\":\"webhooks\"\x7d\x7d,\"$ref\":\"#/$defs/PingWebhookRequest\",\"$schema\":\"https://json-schema.org/draft/2020-12/schema\"}", diff --git a/internal/usage/schema.go b/internal/usage/schema.go index ba8dcfb3..c8554053 100644 --- a/internal/usage/schema.go +++ b/internal/usage/schema.go @@ -95,7 +95,7 @@ var usageNodes = map[string]usageNode{ "tts": {head: "cmd \"tts\" help=\"Text to speech (gemini-3.8-flash-tts)\""}, "video": {head: "cmd \"video\" help=\"Generate & edit video conversationally (gemini-omni-1.2-flash)\"", args: []usageItem{{key: "prompt", text: " arg \"prompt\" help=\"Video prompt (create input; omit with --resume)\" var=#true"}}, flags: []usageItem{{key: "body", text: " flag \"--body \" help=\"Request body as JSON (advanced; merges with intent inputs, rejecting duplicate keys). Can also be provided via stdin; @path reads a file, @- reads stdin to EOF. Use --schema to print the exact JSON Schema.\""}, {key: "schema", text: " flag \"--schema\" help=\"Print the exact JSON Schema of the request body and exit\""}, {key: "aspect-ratio", text: " flag \"--aspect-ratio \" help=\"Aspect ratio of the output video (e.g. 16:9, 9:16)\" {\n suggestions \"16:9\" \"9:16\"\n }"}, {key: "model", text: " flag \"-m --model \" help=\"Override the video model (e.g. gemini-omni-1.1-flash, gemini-omni-flash-preview, default: gemini-omni-1.2-flash)\" default=\"gemini-omni-1.2-flash\" {\n suggestions \"gemini-omni-1.2-flash\" \"gemini-omni-1.1-flash\" \"gemini-omni-flash-preview\"\n }"}, {key: "previous-interaction-id", text: " flag \"--previous-interaction-id \" help=\"Continue from an earlier interaction, extending or editing the video it produced\""}, {key: "resolution", text: " flag \"--resolution \" help=\"Resolution of the output video (defaults to 720p) (e.g. 360p, 720p, 1080p, 4k)\" {\n suggestions \"360p\" \"720p\" \"1080p\" \"4k\"\n }"}, {key: "out", text: " flag \"--out \" help=\"Write the video to this file (or into this directory). Default: ./gemini-video-{timestamp}-{rand}.{ext}\""}, {key: "raw-response", text: " flag \"--raw-response\" help=\"Print the raw API response instead of writing the video to a file\""}, {key: "resume", text: " flag \"--resume \" help=\"Resume polling an existing operation by ID instead of creating one\""}, {key: "async", text: " flag \"--async\" help=\"Return the operation handle without waiting for a terminal response\""}, {key: "poll-interval", text: " flag \"--poll-interval \" help=\"Override the initial polling interval (positive Go duration, for example 500ms or 2s)\""}, {key: "poll-timeout", text: " flag \"--poll-timeout \" help=\"Override the overall polling deadline (positive Go duration, at least the effective poll interval)\""}}}, "voices": {head: "cmd \"voices\" help=\"Design, replicate, list, inspect, and delete voices\"", children: []string{"create", "delete", "get", "list"}}, - "voices create": {head: "cmd \"create\" help=\"Create a custom voice from a prompt or reference audio\"", flags: []usageItem{{key: "store", text: " flag \"-s --store\" help=\"Persist the voice on the server and return a reusable voice_ (required for prompted voices; expires after 1y of inactivity and counts toward project quota; false returns a client-side voicekey_)\""}, {key: "voice", text: " flag \"-v --voice \" help=\"A custom (\\\"prompted\\\" or \\\"replicated\\\") or prebuilt voice resource. [required]\""}, {key: "body", text: " flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin; @path reads a file, @- reads stdin to EOF. Use --schema to print the exact JSON Schema.\""}, {key: "schema", text: " flag \"--schema\" help=\"Print the exact JSON Schema of the request body and exit\""}}}, + "voices create": {head: "cmd \"create\" help=\"Create a custom voice from a prompt or reference audio\"", flags: []usageItem{{key: "accent", text: " flag \"-a --accent \" help=\"Regional accent descriptor (e.g. American, British)\""}, {key: "context", text: " flag \"-c --context \" help=\"Intended usage context (e.g. Conversational, Audiobook, News)\""}, {key: "description", text: " flag \"--description \" help=\"Descriptive summary of vocal timbre, personality, and tone\""}, {key: "display-name", text: " flag \"--display-name \" help=\"User-provided display name for a stored voice (--store=true)\""}, {key: "gender", text: " flag \"-g --gender \" help=\"Perceived gender presentation (e.g. female, male, neutral)\""}, {key: "language-code", text: " flag \"-l --language-code \" help=\"Primary BCP-47 language tag (e.g. en-US, fr-FR)\""}, {key: "model", text: " flag \"-m --model \" help=\"Voice creation model (defaults to the service default if omitted)\""}, {key: "persona", text: " flag \"--persona \" help=\"Intended persona or archetype (e.g. Warm, Friendly, Narrator)\""}, {key: "pitch", text: " flag \"--pitch \" help=\"options: low, medium, high\""}, {key: "prompted", text: " flag \"--prompted \" help=\"\"\"\n Parameters for prompted voice generation.\n Required when creating a voice with 'type' '\"prompted\"'. Returned when\n creating, getting, or listing prompted voices.\n \"\"\""}, {key: "region-code", text: " flag \"--region-code \" help=\"ISO 3166-1 alpha-2 or UN M.49 region code (e.g. US, GB, 001)\""}, {key: "replicated", text: " flag \"--replicated \" help=\"\"\"\n Input only. Parameters for replicated voice generation.\n Required on input when 'type' is '\"replicated\"'. Not returned in\n responses.\n \"\"\""}, {key: "store", text: " flag \"-s --store\" help=\"Persist the voice on the server and return a reusable voice_ (required for prompted voices; expires after 1y of inactivity and counts toward project quota; false returns a client-side voicekey_)\""}, {key: "type", text: " flag \"-t --type \" help=\"options: replicated, prompted, prebuilt [required]\""}, {key: "body", text: " flag \"--body \" help=\"Request body as JSON (alternative to individual flags). Can also be provided via stdin; @path reads a file, @- reads stdin to EOF. Use --schema to print the exact JSON Schema.\""}, {key: "schema", text: " flag \"--schema\" help=\"Print the exact JSON Schema of the request body and exit\""}}}, "voices delete": {head: "cmd \"delete\" help=\"Delete a custom stored voice by ID\"", args: []usageItem{{key: "id", text: " arg \"id\" help=\"Voice to delete, as voices/ or a bare id (or use --id)\""}}, flags: []usageItem{{key: "id", text: " flag \"-i --id \" help=\"Voice to delete, as voices/ or a bare id (or pass it as the [id] argument)\""}}}, "voices get": {head: "cmd \"get\" help=\"Get a custom stored voice by ID\"", args: []usageItem{{key: "id", text: " arg \"id\" help=\"Voice to get, as voices/ or a bare id (or use --id)\""}}, flags: []usageItem{{key: "id", text: " flag \"-i --id \" help=\"Voice to get, as voices/ or a bare id (or pass it as the [id] argument)\""}}}, "voices list": {head: "cmd \"list\" help=\"List custom and prebuilt voices\"", flags: []usageItem{{key: "accent", text: " flag \"--accent \" help=\"Filter by accent (e.g. American, British) (JSON array)\""}, {key: "contexts", text: " flag \"-c --contexts \" help=\"Filter by intended usage context (e.g. News, Audiobook) (JSON array)\""}, {key: "gender", text: " flag \"-g --gender \" help=\"Filter by gender presentation (e.g. female, male, neutral) (JSON array)\""}, {key: "language-code", text: " flag \"-l --language-code \" help=\"Filter by BCP-47 language code (e.g. en-US) (JSON array)\""}, {key: "page-size", text: " flag \"--page-size \" help=\"Maximum number of voices to return per page (default 50, maximum 1000)\""}, {key: "page-token", text: " flag \"--page-token \" help=\"Page token from a previous voices list call\""}, {key: "persona", text: " flag \"--persona \" help=\"Filter by vocal persona (e.g. Warm, Narrator) (JSON array)\""}, {key: "pitch", text: " flag \"--pitch \" help=\"Filter by vocal pitch (low, medium, high) (JSON array)\""}, {key: "region-code", text: " flag \"-r --region-code \" help=\"Filter by region code (e.g. US, GB) (JSON array)\""}, {key: "search", text: " flag \"-s --search \" help=\"Free-text substring search across display_name and description\""}, {key: "type", text: " flag \"-t --type \" help=\"Filter by voice type (prebuilt, prompted, replicated) (JSON array)\""}, {key: "all", text: " flag \"-a --all\" help=\"Automatically paginate and fetch all results (streams NDJSON for JSON output)\""}, {key: "max-pages", text: " flag \"--max-pages \" help=\"Maximum number of pages to fetch when using --all (0 = no limit)\" default=0"}}}, diff --git a/tests/contract/dryrun_everywhere_test.go b/tests/contract/dryrun_everywhere_test.go index deb7153f..62efa842 100644 --- a/tests/contract/dryrun_everywhere_test.go +++ b/tests/contract/dryrun_everywhere_test.go @@ -106,7 +106,7 @@ func TestDryRunEverywhereKeylessHumanAndJSON(t *testing.T) { {name: "image nested out", args: []string{"image", "a lighthouse", "--out", imageOut}, requests: 1, absentPaths: []string{filepath.Dir(imageOut)}}, {name: "tts nested out", args: []string{"tts", "hello", "--out", ttsOut}, requests: 1, absentPaths: []string{filepath.Dir(ttsOut)}}, {name: "tts voice prompt", args: []string{"tts", "hello", "--voice-prompt", "Warm narrator", "--out", ttsOut}, requests: 2, absentPaths: []string{filepath.Dir(ttsOut)}}, - {name: "voices create", args: []string{"voices", "create", "--store", "--voice", `{"type":"prompted","prompted":{"input":"Warm narrator"}}`}, requests: 1}, + {name: "voices create", args: []string{"voices", "create", "--store", "--type", "prompted", "--prompted", `{"input":"Warm narrator"}`}, requests: 1}, {name: "voices list", args: []string{"voices", "list"}, requests: 1}, {name: "voices get", args: []string{"voices", "get", "voice_abc123"}, requests: 1}, {name: "voices delete", args: []string{"voices", "delete", "voice_abc123"}, requests: 1}, diff --git a/tests/contract/tts_test.go b/tests/contract/tts_test.go index 88cd5308..09cac630 100644 --- a/tests/contract/tts_test.go +++ b/tests/contract/tts_test.go @@ -822,9 +822,8 @@ func TestTTSVoicePromptAndVoicesCommandGroup(t *testing.T) { if createdVoiceBody["store"] != true { t.Errorf("voices create store = %#v, want true", createdVoiceBody["store"]) } - voiceMap, _ := createdVoiceBody["voice"].(map[string]any) - promptedMap, _ := voiceMap["prompted"].(map[string]any) - if voiceMap["type"] != "prompted" || promptedMap["input"] != "Warm radio host" { + promptedMap, _ := createdVoiceBody["prompted"].(map[string]any) + if createdVoiceBody["type"] != "prompted" || promptedMap["input"] != "Warm radio host" { t.Errorf("voices create payload = %#v", createdVoiceBody) } genCfg, _ := interactionBody["generation_config"].(map[string]any) @@ -840,9 +839,9 @@ func TestTTSVoicePromptAndVoicesCommandGroup(t *testing.T) { t.Errorf("tts envelope voice_id = %#v, want voice_custom_123", ttsEnv["voice_id"]) } - // 2. `voices create --store --voice` creates a prompted voice. + // 2. `voices create --store --type prompted --prompted` creates a prompted voice. createRes := runCLI(t, dir, nil, append(plainArgs(server.URL), "-o", "json", "voices", "create", - "--store", "--voice", `{"type":"prompted","prompted":{"input":"Gravelly detective","base_voice":"Puck"}}`)...) + "--store", "--type", "prompted", "--prompted", `{"input":"Gravelly detective","base_voice":"Puck"}`)...) if createRes.err != nil { t.Fatalf("voices create failed: %v\nstderr: %s", createRes.err, createRes.stderr) } @@ -850,20 +849,20 @@ func TestTTSVoicePromptAndVoicesCommandGroup(t *testing.T) { t.Errorf("voices create stdout = %q, want voice_custom_123", createRes.stdout) } - // 2b. `voices create` keeps --store optional (for replicated voices via --voice or --body), + // 2b. `voices create` keeps --store optional (for replicated voices via --type or --body), // while `voices create --help` includes --store=true in its prompted example. createdVoiceBody = nil repFlagRes := runCLI(t, dir, nil, append(plainArgs(server.URL), "-o", "json", "voices", "create", - "--voice", `{"type":"replicated"}`)...) + "--type", "replicated")...) if repFlagRes.err != nil { - t.Fatalf("voices create --voice without --store failed: %v\nstderr: %s", repFlagRes.err, repFlagRes.stderr) + t.Fatalf("voices create --type replicated without --store failed: %v\nstderr: %s", repFlagRes.err, repFlagRes.stderr) } if _, hasStore := createdVoiceBody["store"]; hasStore { - t.Errorf("voices create --voice without --store sent store = %#v, want omitted", createdVoiceBody["store"]) + t.Errorf("voices create --type replicated without --store sent store = %#v, want omitted", createdVoiceBody["store"]) } createdVoiceBody = nil repBodyRes := runCLI(t, dir, nil, append(plainArgs(server.URL), "-o", "json", "voices", "create", - "--body", `{"voice":{"type":"replicated"}}`)...) + "--body", `{"type":"replicated"}`)...) if repBodyRes.err != nil { t.Fatalf("voices create --body without store failed: %v\nstderr: %s", repBodyRes.err, repBodyRes.stderr) } @@ -874,7 +873,7 @@ func TestTTSVoicePromptAndVoicesCommandGroup(t *testing.T) { if helpRes.err != nil { t.Fatalf("voices create --help failed: %v\nstderr: %s", helpRes.err, helpRes.stderr) } - if !strings.Contains(helpRes.stdout, "--store=true --voice") { + if !strings.Contains(helpRes.stdout, "--store=true --type prompted") { t.Errorf("voices create --help missing --store=true example:\n%s", helpRes.stdout) } if strings.Contains(helpRes.stdout, "--store") && strings.Contains(helpRes.stdout, "voicekey_) [required]") {