Dev & Engineering ✓ Google · Official gemini-interactions-apigoogle-genai-sdkmulti-turn-conversationsstreamingfunction-callingstructured-outputgoogle-cloud

Gemini Interactions API Guide

Build stateful, multi-turn Gemini interactions on Google Agent Platform.

FollowSkills review · FSRS-2.0
Not recommended
48/ 100 5-point scale 2.4 / 5
Trust11 / 25 · 2.2/5

The skill documents ADC, project, location, and server-side storage, giving partial data-flow transparency and distinguishing store=True from store=False. It does not specify least-privilege IAM roles, sensitive prompt/data retention risks, tool permission boundaries, user confirmation, cost controls, or rollback, so substantial points are deducted for incomplete safety and recovery guidance: 11/25.

Reliability8 / 20 · 2.0/5

The documented paths cover Python, JS/TS, REST, multi-turn use, streaming, structured output, and function calling, and advise reading typed step kinds. However, there is no test or CI evidence, no pinned compatibility validation, and little handling for authentication failure, invalid agents, network interruption, stream errors, tool failures, or schema mismatches. This supports a plausible happy path only: 8/20.

Adaptability10 / 15 · 3.3/5

The audience and scenarios are reasonably clear, including multi-turn conversations, background execution, streaming, structured output, and function calling; the GEAP requirement for a provisioned agent is also explicit. Boundaries, input/output contracts, permission prerequisites, Chinese-language support, and mainland-China network fit are not sufficiently described, and the core service depends on reachability of Google cloud services: 10/15.

Convention8 / 15 · 2.7/5

The skill has clear sections, usage examples, a data-model reference, and storage guidance. Repository context supplies Apache-2.0 licensing, installation, maintenance status, issue reporting, and contribution paths. The skill itself lacks a changelog, named maintenance owner, compatibility matrix, FAQ, troubleshooting, and explicit dependency-installation guidance; its model and API version claims also lack stability context: 8/15.

Effectiveness7 / 15 · 2.3/5

The examples directly address common Interactions API tasks and are provided in Python, JS/TS, and REST, making them useful starting points. However, a provisioned agent, authentication, IAM, API enablement, and environment configuration remain external prerequisites, and no statically verifiable complete successful output or alternative comparison is provided. The static ceiling therefore supports 7/15.

Verifiability4 / 10 · 2.0/5

The document includes links to Google documentation, concrete SDK versions, an endpoint, event types, and step fields, providing partial auditability. The response example and version/model assertions cannot be independently reproduced during this static review, and the supplied repository material shows no skill-specific test suite, CI coverage, or third-party execution evidence: 4/10.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 513a7a51e85f
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • Interactions default to store=True, which may retain prompts, personal information, or tool-related data server-side; confirm retention, access scope, and disablement before using sensitive data.
  • The skill instructs users to log in with gcloud, enable an API, and call a cloud agent, but does not define least-privilege IAM, cost controls, or a user-confirmation workflow.
  • Model names, SDK versions, and API behavior are volatile; verify current official documentation and service availability before implementation.
  • Streaming, function-calling, and abnormal paths lack error-handling examples; the snippets should not be treated as production-validated implementations.
  • Core functionality depends on network reachability to Google Cloud/Gemini Enterprise Agent Platform and may be affected by mainland-China connectivity, account region, or enterprise policy.
Review evidence [1][2][3][4]
See the full review method →

What does this skill do, and when should you use it?

This skill guides developers through the server-managed Gemini Interactions API on Gemini Enterprise Agent Platform. It covers authentication, client setup, single- and multi-turn conversations, real-time streaming, structured output, and function calling. Examples are provided for Python, TypeScript/JavaScript, and REST with curl. The documented Agent Platform flow requires Google Cloud ADC, the Vertex AI API, and a provisioned agent rather than direct base-model calls.

Shows how to authenticate with gcloud and enable aiplatform.googleapis.com; initialize Python or TypeScript/JavaScript clients with the Google Gen AI SDK; create single-turn and stateful requests using previous_interaction_id; process streaming events; produce schema-constrained JSON with Pydantic or TypeScript schemas; inspect function_call steps, execute local functions, and submit function_result steps; send synchronous, stateful, and SSE streaming requests through the REST endpoint; and interpret steps, content, output_text, storage, and retention behavior.

  1. A Python or JavaScript developer who needs server-managed conversation state on Google Agent Platform.
  2. An interactive application developer who needs to render model output incrementally as it streams.
  3. An engineer who wants an agent to call a local function and receive its result in the interaction history.
  4. An application developer who needs JSON conforming to a Pydantic or TypeScript schema.
  5. A developer debugging Interactions API calls with curl or a non-Python/JavaScript environment.

What are this skill's strengths and limitations?

Pros
  • Covers Python, TypeScript/JavaScript, and REST usage.
  • Includes stateful turns, streaming events, structured output, and function calling.
  • Explains the modern steps schema, output_text, and typed step categories.
  • Provides authentication, environment-variable, and Agent Platform configuration examples.
Limitations
  • Requires a provisioned agent; the source says direct base-model calls with model are not yet supported on Agent Platform.
  • Requires Google Gen AI SDK >= 2.3.0; legacy Google SDKs are unsupported.
  • Examples depend on a Google Cloud project, ADC, API enablement, and network access.
  • The source provides no test suite, compatibility matrix, or cost guidance.

How do you install this skill?

Run npx skills add google/skills, then select skills/cloud/gemini-interactions-api when prompted. The repository contains 90 skills; the source does not document a separate package or standalone installation command for this skill.

How do you use this skill?

After installation, ask a compatible Agent Skill client: Guide me through a Python example using the Google Gemini Interactions API on Agent Platform with multi-turn state, streaming, and function calling. Before running code, execute gcloud auth application-default login and gcloud services enable aiplatform.googleapis.com, set GOOGLE_GENAI_USE_ENTERPRISE=true, GOOGLE_CLOUD_PROJECT, and GOOGLE_CLOUD_LOCATION=global, and provide the ID of a provisioned agent.

How does this skill compare with similar options?

The skill explicitly contrasts the Google Gen AI SDK with legacy packages such as google-cloud-aiplatform, @google-cloud/vertexai, and google-generativeai, which it states are unsupported for Interactions. It also distinguishes Agent Platform's required agent target from other Gemini API contexts that use model.

FAQ

Can I pass a model name directly?
Not on Gemini Enterprise Agent Platform. Use the `agent` parameter with a provisioned agent; the source states that direct base-model calls through `model` are not yet supported there.
What permissions and setup are required?
You need Google Cloud Application Default Credentials, a target project, the `aiplatform.googleapis.com` API enabled, and a provisioned agent.
Can I continue a conversation after disabling storage?
Not with `previous_interaction_id`. Setting `store=false` disables server-side retention, so each request must include the complete conversation history in `input`.

More skills from this repository

All from google/skills

Dev & Engineering ✓ Google · Official

Gemini API Enterprise Development Guide

Helps developers build enterprise Gemini applications on Agent Platform with Google's unified Gen AI SDK.

Dev & Engineering ✓ Google · Official

Gemini LiveAPI Client Service Skill

Generate a resumable, multimodal, bidirectional Gemini LiveAPI client over WebSockets.

Dev & Engineering ✓ Google · Official

Google Cloud Agent Platform Inference Assistant

Guides developers in connecting to Google Cloud Agent Platform and calling Gemini or OpenMaaS models.

Automation & Ops ✓ Google · Official

Gemini AI Studio to Agent Platform Migration

Guides Gemini API applications from Google AI Studio to Google Cloud Agent Platform.

Automation & Ops ✓ Google · Official

Google Cloud Live Multimodal Streaming Architect

Design and deploy Google Cloud solutions for live, bidirectional multimodal streams.

Dev & Engineering ✓ Google · Official

Gemini Enterprise Managed Agents

Manage stateful Gemini Enterprise agents through the Managed Agents API.

Automation & Ops ✓ Google · Official

Google Cloud Authentication Guide

Choose secure Google Cloud authentication and authorization for local, production, and cross-cloud workloads.

Automation & Ops ✓ Google · Official

Google Cloud AI Agent Builder

Design, implement, deploy, and validate AI agents and multi-agent systems on Google Cloud.

Data & Analysis ✓ Google · Official

Google Cloud Agent Evaluation Flywheel

Improve model and agent quality through structured evaluation, failure analysis, and iteration.

Data & Analysis ✓ Google · Official

Cross-Cloud Agentic Analytics Architect

Design governed, secure agentic analytics for distributed data

Data & Analysis ✓ Google · Official

Agent Platform RAG Engine Manager

Manage Vertex AI RAG corpora and retrieve grounded context with Python SDKs.

Dev & Engineering ✓ Google · Official

Agent Platform Prompt Manager

Manage Agent Platform managed prompts with Python SDK guidance.

Dev & Engineering ✓ Google · Official

Agent Platform Tuning Manager

Inspect, list, and safely cancel Agent Platform GenAI tuning jobs.

Data & Analysis ✓ Google · Official

Agent Platform Model Tuning

A guided end-to-end workflow for fine-tuning open or Gemini models on Google Agent Platform.

Dev & Engineering ✓ Google · Official

Google Agents CLI Agent Development Guide

Guides agents from specification through development, deployment, and monitoring.

Dev & Engineering ✓ Google · Official

Gemini Enterprise Skill Registry

Search, manage, monitor, and scaffold skills for the Gemini Enterprise Agent Platform.

Automation & Ops ✓ Google · Official

Google Cloud Solution Architect

Plan, validate, and package end-to-end architectures for complex multi-product Google Cloud workloads.

Automation & Ops ✓ Google · Official

Google Cloud Reliability Architect

Evaluate and improve Google Cloud workload reliability using the Well-Architected Framework.

Automation & Ops ✓ Google · Official

Google Cloud Workload Manager Evaluator

Evaluate Google Cloud workloads against best-practice rules and review actionable findings.

Automation & Ops ✓ Google · Official

GKE Production Golden Path

Set production-oriented GKE defaults, readiness checks, and decision guardrails for cluster design.

Related skills