The Interaction resource.

interface Interaction {
    agent?: string & {} | "deep-research-pro-preview-12-2025";
    agent_config?:
        | GeminiNextGenAPIClient.Interactions.DynamicAgentConfig
        | GeminiNextGenAPIClient.Interactions.DeepResearchAgentConfig;
    created: string;
    id: string;
    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.FileSearchCallContent
    | GeminiNextGenAPIClient.Interactions.FileSearchResultContent
    | GeminiNextGenAPIClient.Interactions.Content[]
    | GeminiNextGenAPIClient.Interactions.Turn[];
    model?: GeminiNextGenAPIClient.Interactions.Model;
    outputs?: GeminiNextGenAPIClient.Interactions.Content[];
    previous_interaction_id?: string;
    response_format?: unknown;
    response_mime_type?: string;
    response_modalities?: ("audio" | "image" | "text")[];
    role?: string;
    status:
        | "failed"
        | "completed"
        | "cancelled"
        | "in_progress"
        | "requires_action"
        | "incomplete";
    system_instruction?: string;
    tools?: GeminiNextGenAPIClient.Interactions.Tool[];
    updated: string;
    usage?: GeminiNextGenAPIClient.Interactions.Usage;
}

Properties

agent?: string & {} | "deep-research-pro-preview-12-2025"

The name of the Agent used for generating the interaction.

Configuration for the agent.

created: string

Output only. The time at which the response was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).

id: string

Output only. A unique identifier for the interaction completion.

The inputs for the interaction.

The name of the Model used for generating the interaction.

Output only. Responses from the model.

previous_interaction_id?: string

The ID of the previous interaction, if any.

response_format?: unknown

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

response_mime_type?: string

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

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

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

role?: string

Output only. The role of the interaction.

status:
    | "failed"
    | "completed"
    | "cancelled"
    | "in_progress"
    | "requires_action"
    | "incomplete"

Output only. The status of the interaction.

system_instruction?: string

System instruction for the interaction.

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

updated: string

Output only. The time at which the response was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).

Output only. Statistics on the interaction request's token usage.