The Interaction resource.

interface Interaction {
    agent?: string & {} | "deep-research-pro-preview-12-2025";
    created?: string;
    id: string;
    model?: GeminiNextGenAPIClient.Interactions.Model;
    outputs?: GeminiNextGenAPIClient.Interactions.Content[];
    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.

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.