Prompt Buddy logoPrompt Buddy

google · Google AI Docs

Gemini API ReAct agent from scratch with Gemini and LangGraph

Implementation guide for building a ReAct-style reasoning agent from the ground up using the Gemini API and the LangGraph orchestration framework.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Gemini API ReAct agent from scratch with Gemini and LangGraph

Implementation guide for building a ReAct-style reasoning agent from the ground up using the Gemini API and the LangGraph orchestration framework.

When To Use

Use when you need to implement a reasoning and acting (ReAct) agent loop that uses Gemini for decision-making and LangGraph for state management and tool orchestration.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/gemini-api-react-agent-from-scratch-with-and-langgraph-workflow-guide.mdA guide and implementation walkthrough for building a ReAct agent using the Gemini API and the LangGraph framework.Questions about a guide and implementation walkthrough for building a ReAct agent using the Gemini API and the LangGraph framework.
examples/gemini-api-react-agent-from-scratch-with-and-langgraph-gemini-api-langgr.textA Python implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph.Exact payloads, commands, or snippets shown in A Python implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph.
examples/gemini-api-react-agent-from-scratch-with-and-langgraph-gemini-api-langgr-2.textA Python implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph.Exact payloads, commands, or snippets shown in A Python implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph.
examples/gemini-api-react-agent-from-scratch-with-and-langgraph-gemini-api-langgr-3.textA Python implementation of a ReAct agent using the Gemini API and LangGraph to manage agent state and message sequences.Exact payloads, commands, or snippets shown in A Python implementation of a ReAct agent using the Gemini API and LangGraph to manage agent state and message sequences.
examples/gemini-api-react-agent-from-scratch-with-and-langgraph-gemini-api-langgr-4.textA Python implementation of a ReAct agent using Gemini API and LangGraph with custom tool definitions.Exact payloads, commands, or snippets shown in A Python implementation of a ReAct agent using Gemini API and LangGraph with custom tool definitions.
examples/gemini-api-react-agent-from-scratch-with-and-langgraph-gemini-api-langgr-5.textA Python implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph with tool binding.Exact payloads, commands, or snippets shown in A Python implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph with tool binding.
examples/gemini-api-react-agent-from-scratch-with-and-langgraph-gemini-api-langgr-6.textA Python implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph.Exact payloads, commands, or snippets shown in A Python implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph.
examples/gemini-api-react-agent-from-scratch-with-and-langgraph-gemini-api-langgr-7.textA Python implementation of a ReAct agent using Gemini API and LangGraph to manage stateful tool-calling workflows.Exact payloads, commands, or snippets shown in A Python implementation of a ReAct agent using Gemini API and LangGraph to manage stateful tool-calling workflows.
examples/gemini-api-react-agent-from-scratch-with-and-langgraph-gemini-api-langgr-8.textPython code using IPython to display a Mermaid diagram of a LangGraph ReAct agent workflow.Exact payloads, commands, or snippets shown in Python code using IPython to display a Mermaid diagram of a LangGraph ReAct agent workflow.
examples/gemini-api-react-agent-from-scratch-with-and-langgraph-gemini-api-langgr-9.textA Python code implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph.Exact payloads, commands, or snippets shown in A Python code implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph.
examples/gemini-api-react-agent-from-scratch-with-and-langgraph-gemini-api-langgr-10.textA Python code implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph.Exact payloads, commands, or snippets shown in A Python code implementation demonstrating how to build a ReAct agent using the Gemini API and LangGraph.

What This Skill Covers

  • LangGraph is a framework for building stateful LLM applications, making it a good choice for constructing ReAct (Reasoning and Acting) Agents.

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/langgraph-example