Session
Architecting Autonomous Run loops: State Machine Design and Execution Patterns with Google Gemini
While integrating Large Language Models (LLMs) into simple request-response flows is straightforward, building autonomous agents that can plan, execute tools, and solve complex problems remains a significant engineering hurdle. Unconstrained agent loops are inherently prone to unpredictability, infinite execution loops, and security vulnerabilities. To build reliable, production-grade agents, we must enforce structure on their autonomy.
In this technical session, we will explore how to model agent workflows as deterministic state machines using Google Gemini and Google Cloud. We will break down the architecture of the autonomous run loop (Perceive →→Plan →→Execute →→Observe) and examine how to utilize Gemini’s native structured outputs and function calling to drive reliable state transitions.
Attendees will learn how to design robust execution patterns, establish security boundaries to prevent prompt injections during tool execution, and manage persistent agent state over long-lived sessions. You will walk away with a practical architectural blueprint for balancing probabilistic AI reasoning with deterministic system reliability.
Key Technical Concepts Covered:
- ReAct (Reasoning and Acting) execution patterns
- Finite State Machines (FSM) in Agentic Workflows
- Gemini Function Calling & Structured JSON Schemas
- State Persistence and Asynchronous Processing on Google Cloud
- Human-in-the-Loop (HITL) execution boundaries
- Observability, tracing, and logging of agent state transitions
Mohamed Mortadha Manai
Senior AI Engineer | Google Developer Expert in Cloud AI |Phd Candidate in xAI | AI Expert Consultant | AI Expert Author | International AI Speaker
Halifax, Canada
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top