The Interaction resource.

interface Interaction {
    agent?: string & {} | "deep-research-pro-preview-12-2025";
    created?: string;
    id: string;
    model?: GeminiNextGenAPIClient.Interactions.Model;
    object?: "interaction";
    outputs?: (
        | 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
    )[];
    previous_interaction_id?: string;
    role?: string;
    status: | "failed"
    | "completed"
    | "cancelled"
    | "in_progress"
    | "requires_action";
    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.

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 name of the Model used for generating the interaction.

object?: "interaction"

Output only. The object type of the interaction. Always set to interaction.

Output only. Responses from the model.

previous_interaction_id?: string

The ID of the previous interaction, if any.

role?: string

Output only. The role of the interaction.

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

Output only. The status of the 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.