Stateful Agentic Apps

Stateful Agentic Apps

Goran Minov

November 21, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

9 slides
  1. DEVFEST ARMENIA · YEREVAN NOV 21, 2026 Stateful Agentic Apps

    with the Gemini Interactions API Goran Minov Google Developer Expert, Cloud AI
  2. SITUATION 03:12, station time orbital7/station.log [03:12:07] REACTOR thermal trip, breakers

    OPEN [03:12:07] POWER main bus OFFLINE [03:12:08] LIFE SUP scrubbers OFFLINE, O2 falling [03:12:08] TELEMETRY array degraded [03:12:09] ON-CALL paging the SRE agent ... [03:12:09] ON-CALL agent not found YOUR JOB TODAY Build the agent this page is looking for. Orbital 7: an ageing research station that was never built all at once. DevFest Armenia 2026 · Yerevan 2
  3. EQUIPMENT Seven tools, no manual get_station_status run_diagnostic vent_coolant set_sector_power Dashboard

    from the telemetry array One subsystem, read locally Valve A or B, limited coolant Megawatts per sector restart_power_bus restart_life_support escalate_to_human WHAT'S MISSING Re-energise main power Start the oxygen scrubbers Hand over to ground control Any hint about the order Each description says what the tool does and what it needs. Working out the sequence is the agent's job. DevFest Armenia 2026 · Yerevan 3
  4. RULE 1 The server keeps the history GENERATECONTENT INTERACTIONS API

    You re-send everything You send what's new + an ID Turn 1 Turn 1 Turn 2 Turn 2 Turn 3 Turn 3 Turn 4 Turn 4 Request size per turn, illustrative. Still true: the model reads the whole history. Caching cuts the cost; you measure it. DevFest Armenia 2026 · Yerevan 4
  5. RULE 2 Answer every call, by ID THE MODEL ASKS

    YOU ANSWER function_call function_result id="call_a1" vent_coolant(valve="A") call_id="call_a1" "Valve A did not respond" function_call function_result id="call_b2" run_diagnostic("power") call_id="call_b2" {"total_configured_mw": 100} One result for every call, same call_id and name. A missing or mismatched result is rejected. IDs shortened for the slide. DevFest Armenia 2026 · Yerevan 5
  6. RULE 3 Send your config every time agent.py REQUEST_CONFIG =

    { "model": MODEL, "system_instruction": SYSTEM_INSTRUCTION, "tools": TOOL_DECLARATIONS, "generation_config": {"thinking_summaries": "auto"}, } interaction = client.interactions.create( previous_interaction_id=interaction.id, input=results, **REQUEST_CONFIG, ) DevFest Armenia 2026 · Yerevan CARRIES OVER Inputs, thoughts, function calls and results, outputs SEND EVERY CALL model, tools, system_instruction, generation_config Skip it and your agent forgets who it is on turn 2. 6
  7. THE MAP Three in the room, three at home 10

    MIN 25 MIN 10 MIN AT HOME AT HOME AT HOME 01 02 03 04 05 06 Set up Build Verify Measure Resume Branch Cloud Shell and the key Simulator, tools, loop Report vs ground truth Sent vs read Same session, new process Rewind and change history Debrief, last 5 min: production practices and clean-up. 04 to 06: finish at home. DevFest Armenia 2026 · Yerevan 7
  8. BEFORE LAUNCH Get set up in three steps 1 Open

    Cloud Shell 2 Export the workshop key 3 Open the codelab console.cloud.google.com, then the >_ icon Scan the code for the key. It's revoked after today. Go to lineargs.dev/codelabs DevFest Armenia 2026 · Yerevan 8

More Decks by Goran Minov

Other Decks in Technology