- Home
- Skills
- Workflow Automation
- vertex ai gemini integrator
Works with the AI tools you already use
vertex ai gemini integrator
Deploy production-ready Gemini and Vertex AI integrations with strict JSON enforcement and secure ADC authentication.
$12
vertex ai gemini integrator
Example session with this skill installed
I need a Python script for Vertex AI that takes a transcript and returns a JSON list of action items. Use ADC for auth and include retry logic.
- Read your context and instructions
- Compiled the vertex ai gemini
I have generated a production-ready Python script using the vertexai SDK. This implementation uses Application Default Credentials for secure authentication and incorporates the tenacity library to handle potential API rate limits with exponential backoff.
Vertex AI Structured Output Implementation
import json
import vertexai
from vertexai.generative_models import GenerativeModel, GenerationConfig
from tenacity import retry, stop_after_attempt, wait_exponential, retry_if_exception_type
# Initialize Vertex AI with your project and location
vertexai.init(project="your-project-id", location="us-central 1")
@retry(
stop=stop_after_attempt(5),
wait=wait_exponential(multiplier=1, min=4, max=10),
retry=retry_if_exception_type(Exception)
)
def extract_action_items(transcript: str):
"""
Extracts action items from a transcript and enforces JSON output.
Uses ADC for authentication - ensure GOOGLE_APPLICATION_CREDENTIALS is set.
"""
model = GenerativeModel("gemini-1.5-flash")
prompt = f"Extract all action items from the following transcript: {transcript}"
# Strict JSON enforcement via GenerationConfig
response = model.generate_content(
prompt,
generation_config=GenerationConfig(
response_mime_type="application/json"
)
)
try:
return json.loads(response.text)
except json.JSONDecodeError:
return {"error": "Failed to parse model output as JSON"}
# Example call
transcript_data = "Meeting notes: Sarah will fix the login bug by Friday. Mike needs to update the docs."
actions = extract_action_items(transcript_data)
print(json.dumps(actions, indent=2))
Next steps
- Ensure the Vertex AI API is enabled in your Google Cloud Console.
- Run
gcloud auth application-default loginto set up your local environment. - Install dependencies:
pip install google-cloud-aiplatform tenacity.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
The problem
Integrating LLMs into production apps often leads to brittle code, hardcoded secrets, and inconsistent JSON responses that break downstream logic. Managing the differences between Google Cloud Vertex AI and the standalone Gemini API creates unnecessary friction for developers.
What it does
- Generates production-ready Python and Node.js boilerplate for Vertex AI and Gemini API.
- Enforces strict JSON output using
response_mime_typeto prevent parsing errors. - Implements secure credential management using Application Default Credentials (ADC).
- Provides retry logic patterns using
tenacityorp-retryto handle 429 rate limits. - Scaffolds multi-turn chat architectures with system prompt enforcement.
Frameworks & tools
Node.js, Python, Google Cloud Vertex AI, Gemini API, p-retry, and tenacity.
Why this beats prompting it yourself
Generic prompts often forget to include the specific configuration flags required for reliable JSON mode or fail to mention Google's distinct authentication methods. This skill ensures your integration follows Google's best practices for security and reliability from the first line of code.
Use cases
- Building data extraction pipelines that require validated JSON objects.
- Migrating existing OpenAI-based backends to the Gemini ecosystem.
- Scaling LLM apps on Google Cloud using managed IAM roles and ADC.
- Implementing resilient agents that handle API throttling without crashing.
Known limitations
Requires an active Google Cloud project or Gemini API key. Does not support deprecated PaLM models.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 6 days ago
- Passed all security checks, Safe to install