Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesGemini in Practice: Real Google ExamplesReAct Agent: Reasoning + Acting
An order receipt built by a barista bot calling add_to_orderA workflow map: a Telegram message branches into command, voice and text and reaches the agentA form request lands in a spreadsheet row labelled “Complaint”
Course

Gemini in Practice: Real Google Examples

Module 1 · Agents and Tools
01ReAct Agent: Reasoning + Acting02Search Grounding: Real-Time Data in Responses03Barista Bot: Agent with Automatic Function Calling
Module 2 · Structured Data Extraction
04Entity Extraction from Text05Structured Output from PDFs: Invoices and Forms
Module 3 · Embeddings: Search and Anomaly Detection
06Anomaly Detection with Embeddings07Search Re-Ranking with Embeddings
Module 4 · Data Analysis and Integrations
08GitHub Issue Analyzer: Repository Analysis with Gemini
Gemini in Practice: Real Google Examples · Lesson 1

ReAct Agent: Reasoning + Acting

Implement the ReAct (Reasoning + Acting) pattern with Gemini 3.8 Flash and the Wikipedia API: first the classic Thought→Action→Observation loop with text tags, then the same agent with native function calling and thinking. Finally, a look at the ready-made managed agents in the Gemini API.

35 min readUpdated Nov 9, 20263 questions in quizReady prompt included

What is ReAct

ReAct (Reasoning + Acting) is a technique in which the model alternates between reasoning and actions with tools. Each iteration produces a Thought–Action–Observation triple: the model thinks, calls a tool, reads the result and decides what to do next.

The pattern comes from a 2022 paper, written before models had built-in function calling. Actions were written as tags in plain text and parsed with regular expressions. Gemini now has two built-in mechanisms for the same job: thinking (the model reasons before it answers) and function calling (tools are declared in the request). First we build the classic text-based ReAct to see how the loop works, then we rewrite the agent with native tools.

The rest of this lesson opens after a free sign-up

Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.

Sign up freeOr a trial lesson, no sign-up →
In this lesson
What is ReActText ReAct: the model instructionsThe ReAct Agent ClassParsing Actions and the Execution LoopFew-Shot Prompting for Format ControlThe Native Version: Function Calling and ThinkingReady-Made Agents in the Gemini APIPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free