Optionalbackground?: booleanInput only. Whether to run the model interaction in the background.
Optionalcached_content?: stringThe 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}
Optionalcontinuation_token?: stringOpaque token to resume a long decode. Output: set when status is
Optionalenvironment?: Environment | stringThe environment configuration for the interaction. Can be an object
Optionalgeneration_config?: GenerationConfigConfiguration parameters for model interactions.
Optionalinput?: InteractionsInputThe input for the interaction.
Optionallabels?: { [k: string]: string }The labels with user-defined metadata for the request.
The model that will complete your prompt.\n\nSee models for additional details.
Optionalprevious_interaction_id?: stringThe ID of the previous interaction, if any.
Optionalresponse_format?: ResponseFormat | ResponseFormat[]Enforces that the generated response is a JSON object that complies with
Optionalresponse_mime_type?: stringThe mime type of the response. This is required if response_format is set.
Optionalresponse_modalities?: ResponseModality[]The requested modalities of the response (TEXT, IMAGE, AUDIO).
Optionalsafety_settings?: SafetySetting[]Safety settings for the interaction.
Optionalservice_tier?: ServiceTierOptionalstore?: booleanInput only. Whether to store the response and request for later retrieval.
Optionalstream?: booleanInput only. Whether the interaction will be streamed.
Optionalsystem_instruction?: stringSystem instruction for the interaction.
Optionaltools?: Tool[]A list of tool declarations the model may call during interaction.
Optionalwebhook_config?: WebhookConfigMessage for configuring webhook events for a request.
Interaction for generating the completion using models.