Back to Knowledge Tree
Tech 2 min read · 368 words · Updated 2026-10-16

LLM Integration

Building products on language and speech models, mostly Gemini: page reading and narration in AudioTales, Gemini Live in this site's voice agent, a tool-calling game studio in GameTsunami, generated pages in Tales Unwritten, drills in Fluenics, plus civility checks, embeddings, MCP tools and the Vercel AI SDK.

LLM Integration

[!NOTE]

Overview

Attribute Details
Used Advection era (2023 to present)
Role Advection Software
Models and SDKs Gemini (text, vision, TTS, Live), OpenAI and Anthropic models through the Vercel AI SDK, OpenAI embeddings, ElevenLabs sound effects, Azure Speech
Patterns Bounded tool loops, MCP tools, structured JSON output, streamed speech, embedding duplicate checks

Where Andrea used it

  • AudioTales. Gemini transcribes page photos, decides the book's language from all pages read so far, and reads each page as one TTS take.
  • Talk to My Agent. Gemini Live over a direct WebSocket with ephemeral tokens, grounded in this tree; a text chat that calls tools over SSE and streams its speech.
  • GameTsunami. A multi-file, tool-calling studio agent on Gemini through the Vercel AI SDK, with reasoning and tool steps streamed live and token cost attributed per user.
  • Tales Unwritten. Gemini writes each page with structured JSON output the first time a reader reaches it, with narration.
  • Fluenics generates speaking drills with Gemini; Commonts screens posts with civility models and suggests rewrites that keep the argument; Two Truths & the Lie writes statements through a job queue and checks them with embeddings.
  • Autonomic Alpha Foundry. Agents on the Microsoft Agent Framework with data fetchers and simulators exposed as MCP tools.
  • Before agent tooling. The Context Packager packed whole repositories into token-budgeted prompts for large-context models. See multi-agent systems and agent-UI protocols.

Notable decisions

  • Ask the question the model can answer (AudioTales). Asked which way to rotate a page, the model got a quarter turn right about half the time; shown the photo four ways and asked which is upright, it was right on all 226 test photos.
  • Ground up front for voice. The voice agent gets the whole public tree in its instructions, so a spoken answer never waits on a tool call; the text chat, which can wait, uses tools.
  • Stream speech. Streaming TTS as raw PCM cut first audio from 3.6-5.7 s to about 0.6 s.
Highlight reel