interface BaseCreateModelInteractionParams {
    api_version?: string;
    background?: boolean;
    generation_config?: GeminiNextGenAPIClient.Interactions.GenerationConfig;
    input:
        | string
        | GeminiNextGenAPIClient.Interactions.TextContent
        | GeminiNextGenAPIClient.Interactions.ImageContent
        | GeminiNextGenAPIClient.Interactions.AudioContent
        | GeminiNextGenAPIClient.Interactions.DocumentContent
        | GeminiNextGenAPIClient.Interactions.VideoContent
        | GeminiNextGenAPIClient.Interactions.ThoughtContent
        | GeminiNextGenAPIClient.Interactions.FunctionCallContent
        | GeminiNextGenAPIClient.Interactions.FunctionResultContent
        | GeminiNextGenAPIClient.Interactions.CodeExecutionCallContent
        | GeminiNextGenAPIClient.Interactions.CodeExecutionResultContent
        | GeminiNextGenAPIClient.Interactions.URLContextCallContent
        | GeminiNextGenAPIClient.Interactions.URLContextResultContent
        | GeminiNextGenAPIClient.Interactions.GoogleSearchCallContent
        | GeminiNextGenAPIClient.Interactions.GoogleSearchResultContent
        | GeminiNextGenAPIClient.Interactions.MCPServerToolCallContent
        | GeminiNextGenAPIClient.Interactions.MCPServerToolResultContent
        | GeminiNextGenAPIClient.Interactions.FileSearchResultContent
        | GeminiNextGenAPIClient.Interactions.Content[]
        | GeminiNextGenAPIClient.Interactions.Turn[];
    model: GeminiNextGenAPIClient.Interactions.Model;
    previous_interaction_id?: string;
    response_format?: unknown;
    response_mime_type?: string;
    response_modalities?: ("audio" | "image" | "text")[];
    store?: boolean;
    stream?: boolean;
    system_instruction?: string;
    tools?: GeminiNextGenAPIClient.Interactions.Tool[];
}

Hierarchy (View Summary)

Properties

api_version?: string

Path param: Which version of the API to use.

background?: boolean

Body param: Whether to run the model interaction in the background.

Body param: Input only. Configuration parameters for the model interaction.

Body param: The inputs for the interaction.

Body param: The name of the Model used for generating the interaction.

previous_interaction_id?: string

Body param: The ID of the previous interaction, if any.

response_format?: unknown

Body param: Enforces that the generated response is a JSON object that complies with the JSON schema specified in this field.

response_mime_type?: string

Body param: The mime type of the response. This is required if response_format is set.

response_modalities?: ("audio" | "image" | "text")[]

Body param: The requested modalities of the response (TEXT, IMAGE, AUDIO).

store?: boolean

Body param: Input only. Whether to store the response and request for later retrieval.

stream?: boolean

Body param: Input only. Whether the interaction will be streamed.

system_instruction?: string

Body param: System instruction for the interaction.

Body param: A list of tool declarations the model may call during interaction.