<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lam Tung Vo on Medium]]></title>
        <description><![CDATA[Stories by Lam Tung Vo on Medium]]></description>
        <link>https://medium.com/@nolanvo5894?source=rss-9136bc472f3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gsudNOsozGdbdkuS.jpg</url>
            <title>Stories by Lam Tung Vo on Medium</title>
            <link>https://medium.com/@nolanvo5894?source=rss-9136bc472f3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:56:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nolanvo5894/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My Little AI Story App]]></title>
            <link>https://medium.com/@nolanvo5894/my-little-ai-story-app-f441870dc96a?source=rss-9136bc472f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f441870dc96a</guid>
            <dc:creator><![CDATA[Lam Tung Vo]]></dc:creator>
            <pubDate>Mon, 16 Mar 2026 22:39:01 GMT</pubDate>
            <atom:updated>2026-03-16T22:39:01.623Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyworld is a immersive simulation engine that turns a plain-English scenario into a living world with AI characters who scheme, negotiate, betray, and form alliances — then writes the story of what happened. Here’s how we built it on Google’s AI stack.</p><p><strong>The Architecture</strong></p><p>The engine runs in two stages: a spec generator that designs a complete game world from a text prompt, and a simulation engine where AI agents play that world out round by round. Every stage is an LLM call. The question was which model to use where.</p><p><strong>Gemini 3.1 Flash: The Workhorse</strong></p><p>The bulk of the engine runs on Gemini 3.1 Flash. It handles agent intentions (choosing actions under fog of war), negotiation (proposing and responding to trades), private channel conversations between agents, and post-round reflection where each agent updates their beliefs, relationships, and plans. Flash was the right choice here because these calls happen many times per round — with three agents, a single round can fire 15+ LLM calls across all phases. Flash’s speed keeps the simulation from dragging, and its quality is more than sufficient for in-character dialogue and tactical reasoning.</p><p>Flash also powers the two showrunner translator calls: when the user types a plain-English event (“a storm destroys the warehouse”) or a new action (“agents can now bribe the harbor master”), Flash converts it into structured game mechanics — specific resource changes, costs, and risks — using the current world state as context.</p><p><strong>Gemini 3.1 Pro: The Designer and the God</strong></p><p>The heavier cognitive tasks go to Gemini 3.1 Pro. The three-stage spec generation pipeline — designing the world, stress-testing it for balance issues, and revising based on critique — requires the kind of deep reasoning that Pro excels at. A game designer needs to think about second-order effects: if this resource is scarce and that action is cheap, what degenerate strategy emerges? Pro catches these.</p><p>Pro also runs the god agent, which resolves all actions each round with step-by-step arithmetic. This is the most demanding call in the simulation: it receives every agent’s chosen action, every completed negotiation, any triggered events, and the full resource state — then must compute the exact consequences without error. We format the prompt to enforce BEFORE → change → AFTER accounting for every resource mutation. Pro’s precision here is critical; a single arithmetic mistake cascades through the rest of the game.</p><p>The narrator is Pro as well. After each round, it reads the full round events — actions, negotiations, private whispers, inner thoughts, outcomes — and writes a chapter of literary prose. The constraint is strict: elaborate freely, but never alter the facts. The simulation is truth; the narrator makes it beautiful.</p><p><strong>Gemini Live API: Stepping Inside</strong></p><p>The feature we’re most proud of is human player mode. When you step into a character’s skin, you don’t type — you speak. The Gemini Live API powers real-time voice conversations with AI characters who have their own agendas, memories, and secrets.</p><p>This changes the experience fundamentally. In text chat, you have time to craft the perfect response. In voice, you hear hesitation. You feel the pressure of silence. You make promises in the heat of the moment that you might regret. The AI characters respond naturally, with the full context of the game state — what they know, what they believe, what they’re hiding. It feels less like interacting with an AI and more like being in a room with someone who wants something different from what you want.</p><p><strong>Nano Banana 2: The Visual Layer</strong></p><p>Every world Everyworld generates is illustrated. Nano Banana 2 creates world art that establishes the setting, character portraits that capture personality, and scene illustrations woven into each chapter of the story. The art generation uses the spec’s setting description, character backstories, and round events as prompts — so the visuals are specific to what’s actually happening in the simulation, not generic fantasy imagery.</p><p>The combination of emergent narrative and generated illustration means every playthrough produces a unique piece of illustrated fiction. Same scenario, different run, different story, different art.</p><p><strong>Deployment: Google Cloud Run</strong></p><p>The entire backend runs on Google Cloud Run. Each simulation session spins up as a containerized service that handles the LLM call orchestration, world state management, and WebSocket connections for the Live API voice channel. Cloud Run’s auto-scaling means a single user testing a two-character scenario and a streamer running a five-character world with live audience injection both get the compute they need without provisioning anything. Cold starts are minimal since the application is lightweight — the heavy lifting happens in the Gemini API calls, not in the container itself.</p><p><strong>Why This Stack</strong></p><p>The key insight was matching model capability to task criticality. Flash handles the high-volume, latency-sensitive calls where good-enough reasoning at speed matters more than peak intelligence. Pro handles the calls where a mistake ruins everything — world design, resource arithmetic, literary narration. Live API handles the one moment where the human needs to feel present. Nano Banana 2 handles the visual layer that makes the world feel real. And Cloud Run keeps the whole thing serverless and scalable.</p><p>Every session is a world that existed once and will never exist again. Google’s AI models make that possible at a pace where the experience feels alive rather than generated.</p><p>I created this blog post for the purposes of entering this hackathon.</p><p><em>#GeminiLiveAgentChallenge</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f441870dc96a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>