Prompt Buddy logoPrompt Buddy

google · Google AI Docs

Gemini API Durable AI agent with Gemini and Temporal

Implementation guide for building resilient AI agents by integrating the Gemini API with the Temporal orchestration engine to manage long-running workflows and state.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Gemini API Durable AI agent with Gemini and Temporal

Implementation guide for building resilient AI agents by integrating the Gemini API with the Temporal orchestration engine to manage long-running workflows and state.

When To Use

Use when you need to implement stateful, fault-tolerant AI agent workflows that require long-running execution and reliable task orchestration.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/gemini-api-durable-ai-agent-with-and-temporal-workflow-guide.mdA tutorial guide explaining how to build a ReAct-style agentic loop using the Gemini API for reasoning and Temporal for workflow durability.Questions about a tutorial guide explaining how to build a ReAct-style agentic loop using the Gemini API for reasoning and Temporal f...
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-server.textA text command used to initialize a local development instance of the Temporal server.Exact payloads, commands, or snippets shown in A text command used to initialize a local development instance of the Temporal server.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python.textA list of Python dependencies required to implement a durable AI agent using the Gemini API and Temporal.Exact payloads, commands, or snippets shown in A list of Python dependencies required to implement a durable AI agent using the Gemini API and Temporal.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-durabl.textA shell command to create a .env file containing the GOOGLE_API_KEY environment variable.Exact payloads, commands, or snippets shown in A shell command to create a .env file containing the GOOGLEAPIKEY environment variable.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-2.textA Python implementation of a durable AI agent workflow using the Temporal SDK and the Gemini API.Exact payloads, commands, or snippets shown in A Python implementation of a durable AI agent workflow using the Temporal SDK and the Gemini API.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-agent-.textThe system instructions defining the persona and tool-use behavior for a Gemini-powered durable AI agent using Temporal.Exact payloads, commands, or snippets shown in The system instructions defining the persona and tool-use behavior for a Gemini-powered durable AI agent using Temporal.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-weathe.textA Python implementation of a durable AI agent using the Gemini API and Temporal to fetch weather alerts via the NWS API.Exact payloads, commands, or snippets shown in A Python implementation of a durable AI agent using the Gemini API and Temporal to fetch weather alerts via the NWS API.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-3.textA Python implementation demonstrating a durable AI agent using the Gemini API and Temporal orchestration.Exact payloads, commands, or snippets shown in A Python implementation demonstrating a durable AI agent using the Gemini API and Temporal orchestration.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-4.textA Python implementation demonstrating a durable AI agent using the Gemini API and Temporal orchestration.Exact payloads, commands, or snippets shown in A Python implementation demonstrating a durable AI agent using the Gemini API and Temporal orchestration.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-5.textA Python implementation demonstrating a durable AI agent using the Gemini API and Temporal orchestration.Exact payloads, commands, or snippets shown in A Python implementation demonstrating a durable AI agent using the Gemini API and Temporal orchestration.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-6.textA Python implementation of a Temporal activity designed to execute Gemini API tools dynamically.Exact payloads, commands, or snippets shown in A Python implementation of a Temporal activity designed to execute Gemini API tools dynamically.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-agent--2.textA Python implementation of a Temporal workflow class that uses the Gemini API to execute an agentic loop with tool calling.Exact payloads, commands, or snippets shown in A Python implementation of a Temporal workflow class that uses the Gemini API to execute an agentic loop with tool ca...
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-7.textA Python implementation demonstrating how to integrate the Gemini API with Temporal to create a durable AI agent.Exact payloads, commands, or snippets shown in A Python implementation demonstrating how to integrate the Gemini API with Temporal to create a durable AI agent.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-8.textA Python script demonstrating how to initiate and execute a Gemini API durable AI agent workflow using the Temporal client.Exact payloads, commands, or snippets shown in A Python script demonstrating how to initiate and execute a Gemini API durable AI agent workflow using the Temporal c...
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-durabl-2.textThe terminal command used to run the durable agent worker using the python module.Exact payloads, commands, or snippets shown in The terminal command used to run the durable agent worker using the python module.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-9.textA command line instruction to execute the Python module for starting a Gemini and Temporal durable AI agent workflow.Exact payloads, commands, or snippets shown in A command line instruction to execute the Python module for starting a Gemini and Temporal durable AI agent workflow.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-10.textA list of command-line instructions to execute Python-based Temporal workflows using the Gemini API.Exact payloads, commands, or snippets shown in A list of command-line instructions to execute Python-based Temporal workflows using the Gemini API.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-11.textA command line instruction to execute the Python module for starting a Gemini API durable workflow using Temporal.Exact payloads, commands, or snippets shown in A command line instruction to execute the Python module for starting a Gemini API durable workflow using Temporal.
examples/gemini-api-durable-ai-agent-with-and-temporal-gemini-api-temporal-python-12.textA command line instruction to execute the Python module for starting a Gemini and Temporal durable AI agent workflow.Exact payloads, commands, or snippets shown in A command line instruction to execute the Python module for starting a Gemini and Temporal durable AI agent workflow.

What This Skill Covers

  • This tutorial walks you through building a ReAct-style agentic loop that uses the Gemini API for reasoning and Temporal for durability. The complete source c...
  • Main sections: Architecture, Prerequisites, Setup, Implementation, Imports and sandbox setup.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://ai.google.dev/gemini-api/docs/temporal-example