← все видео

Async AI Workflows: Interactions API, MCP, and Long-Run Compute

Alex Hitt · 2026-04-29 · 9м 50с · 75 просмотров · YouTube ↗

Топики: durable-execution

🎧 Аудио

📝 Summary

model=deepseek-v4-flash · prompt=summary-v7 · 3 534→2 435 tokens · 2026-07-20 15:09:50

🎯 Главная суть

Апрельский релиз Google 2026 года заменил stateless Generate Content API на архитектуру Interactions API с асинхронным опросом, разделил модели на Preview и Max для баланса скорости и глубины вычислений, а также встроил Model Context Protocol (MCP) для безопасного доступа к приватным данным. В результате enterprise-агенты получили возможность выполнять многочасовые аналитические задачи с проверяемой цитатной точностью без потери соединения.

Проблема stateless-архитектуры и новый Interactions API

Традиционный Generate Content API был рассчитан на одношаговые задачи (перевод, краткое резюме). Для длительных запросов это создавало узкое место: HTTP-соединение таймаутилось, разработчикам приходилось строить внешние конечные автоматы для управления историей и повторными попытками. Interactions API решает проблему через персистентный сеанс Interaction resource. Разработчик передаёт параметр background=true — и запрос немедленно отвязывается от текущего HTTP-подключения. Бэкенд возвращает уникальный Interaction ID, по которому клиент в цикле опрашивает состояние (queued → processing → completed). При этом поддерживается стриминг дельта-событий для обновления интерфейса в реальном времени. Единый интерфейс позволяет одинаково работать как с простым текстовым ответом от flash-модели, так и с многочасовым due diligence-отчётом от Deep Research.

Два профиля вычислений: Preview и Max

Google разделил автономные модели на два вычислительных конверта:

Разработчики могут программно масштабировать глубину. Например, соединив нативный инструмент Google Search Grounding с открытой библиотекой Crawl4AI, извлекают большие HTML-пейлоады конкурентно — стоимость одного отчёта снижается до доллара.

Совместное планирование для контроля траектории агента

При неограниченных вычислениях возникает риск trajectory drift: агент неправильно интерпретирует запрос и тратит часы на поиск нерелевантных данных. Для предотвращения в конфигурацию агента добавляется флаг collaborative_planning=true. В этом режиме исполнение останавливается до начала веб-краулинга. Агент на первом цикле генерирует структурированный план исследования с указанием векторов поиска. Человек-эксперт использует тот же Interaction ID, чтобы уточнить траекторию — например, сузить анализ до региональных рыночных данных вместо глобального обзора. После утверждения плана запускается новая интеракция, которая снимает блокировку, и агент переходит к неограниченному сбору и синтезу данных.

Интеграция приватных данных через MCP

Раньше доступ к внутренним данным требовал ручной сборки RAG-пайплайнов: парсинг документов, генерация эмбеддингов, управление векторными базами. Архитектура 2026 года вводит Model Context Protocol (MCP) как универсальный слой. Агент в своём цикле может сформировать специализированный запрос, отправить его через MCP-сервер к локальной корпоративной базе (например, Postgres) и получить внутренние показатели производительности, мгновенно добавляя их в контекст.

Одновременно Google запустил Notebook LM-MCP — CLI-сервер, который позволяет внешним AI-агентам, работающим в локальной IDE, запрашивать курируемые приватные Notebook LM-среды пользователя. Ответ структурирован со строгими академическими цитатами: возвращается массив с точным ID источника, номером цитаты и дословным текстом из оригинального документа. Это позволяет разработчикам обойти локальный парсинг и элиминировать RAG-галлюцинации, заменив их защищённым верифицированным мостом данных.

Итоговая архитектура и её эффект

Релиз апреля 2026 года объединил три уровня: stateful асинхронный транспорт (Interactions API), параметризованные вычислительные профили (Preview/Max) и стандартизированный MCP-канал для данных. В результате снято противоречие между скоростью и полнотой анализа. Организации могут делегировать многочасовые задачи (квартальные финансовые проверки, регуляторные оценки) фоновому асинхронному исполнению за долю стоимости ежегодного аудита, при этом сохраняя строгую привязку к исходным фактам. Развёртывание в масштабе не требует сложной кастомной инженерии — достаточно стандартных протоколов MCP и двусторонней синхронизации Notebook LM.

📜 Transcript

en · 1 305 слов · 23 сегментов · clean

Показать текст транскрипта
Before 2026, enterprise AI struggled with a major operational bottleneck. When asked to perform complex, multi-step analytical tasks, standard systems consistently stalled. Long horizon data requests exceeded standard HTTP protocol limits, resulting in aggressive network timeouts. The structural flaw was the industry's reliance on the Generate Content API. This was a stateless prompt and response endpoint designed for single-turn tasks like translation or brief summarization. Applying that stateless approach to autonomous workflows created massive architectural friction. Developers had to construct complex, brittle external state machines to manage conversation history and retry logic. During extended processing phases, these external workarounds broke down. In April 2026, Google released the Gemini Deep Research and Deep Research Max variants. This update dismantled the existing infrastructure and replaced it with a multi-layered, stateful architecture. The first pillar of this update is the Interactions API. This layer deprecates older paradigms in favor of a unified foundation capable of native state management and asynchronous execution. The second pillar targets resource allocation. Google bifurcated its autonomous models into two distinct profiles, Preview and Max, allowing developers to deliberately optimize for either low latency interactive speed or uncompromising computational depth. The third pillar addresses data provenance. By utilizing the Model Context Protocol, or MCP, the system bridges local integrated development environments directly with secure enterprise data streams. This brings us to the central engineering question. We need to construct systems capable of orchestrating massive, multi-hour AI inquiries across private network perimeters, and we need those systems to return results with perfect, verifiable citation fidelity. Modern enterprise AI operates as a persistent, long-horizon workflow engine designed specifically for the rigorous data demands of the financial and life science sectors. We start at the network transport layer. Allocating massive compute to an AI agent is useless if the underlying HTTP connection drops before the task completes. The Interactions API solves this through the Interaction resource. This is a persistent session protocol that acts as a continuous container, capturing the entire conversational state and tool execution trajectory over time. This flowchart details the Interactions API asynchronous execution lifecycle. Developers inject a background equals true parameter. decoupling the request lifecycle entirely from the synchronous HTTP connection. The backend instantiates the task and returns a unique interaction ID. The client uses this identifier to enter a continuous polling loop, monitoring the state from queued to processing and completed. During this background execution, the architecture supports streaming operations. The system receives real-time delta events and pushes those updates back to the client interface. maintaining user engagement while the deeper processing occurs out of sight. Historically, running deep search required maintaining active, synchronous connections that were vulnerable to network fluctuations. Now, back-end infrastructure triggers massive overnight batch jobs seamlessly, optimizing server load and ensuring operational resilience. Because the interface is unified, developers utilize the exact same design patterns whether they are requesting a simple text string from a flash model or triggering an exhaustive multi-hour due diligence report from the deep research engine. Decoupling the request lifecycle through asynchronous polling resolves the timeout issues that previously prevented autonomous agents from functioning reliably within enterprise microservices. Moving up from the transport layer to the compute layer, we encounter the necessity of precise resource parameterization. The standard deep research preview prioritizes low latency, limiting itself to 80 search queries and 250,000 input tokens for real-time dashboards, but adjusting parameters accesses a different envelope entirely. The MAX variant pushes inputs up to 900,000 tokens and 160 independent queries. The Deep Research Max variant operates continuously through extended test-time computation. It evaluates the relevance of retrieved data, identifies knowledge gaps, and refines its internal hypotheses before concluding its run. This computational depth supports asynchronous background workflows where comprehensiveness is mandatory, like compiling extensive overnight legal due diligence reports or synthesizing decades of academic literature. Engineering teams can also achieve this depth programmatically. By routing the native Google search grounding tool through an open source library like Crawl4AI, developers can extract massive HTML payloads concurrently, driving the operational cost of a comprehensive report down to under a dollar. Allocating vast amounts of unsupervised compute introduces a serious risk, trajectory drift. An agent might misinterpret an initial prompt and spend hours executing highly optimized searches for entirely irrelevant data. To mitigate this, the architecture utilizes collaborative planning. This is activated by passing the collaborative planning true flag within the initial agent configuration object. Once activated, the execution engine forces a hard stop before dispatching any web crawlers. The agent uses its first compute cycle to generate and return a highly structured proposed research plan detailing its intended search vectors. Subject matter experts intervene at this exact stage. Using the previous interaction ID, The human operator submits multi-turn instructions to refine the trajectory, forcing the agent to focus solely on specific parameters, like regional market data, instead of a generalized global overview. When the operator verifies the plan, they initiate a subsequent interaction that releases the execution lock. The agent is then cleared to trigger the unconstrained retrieval and synthesis phase. Autonomous AI relies on mathematically routing compute power and firmly locking down execution trajectories before it is deployed into production. Unconstrained compute and flawless transport protocols are ineffective if an agent is restricted to public web data. We have to look at the data integration layer. Previously, giving an agent access to internal company data required building custom retrieval augmented generation pipelines. Engineers had to manually manage document parsing, embedding generation, and vector databases, resulting in systems requiring constant maintenance. This diagram shows the deep research data orchestration pathways. The architecture features a native file search tool for managed RAG, but to pull from specialized streams, it relies on the Model Context Protocol, or MCP. This acts as a universal standardization layer, allowing the AI model to securely interface with arbitrary third-party environments via an MCP server tool. During its iterative execution loop, an agent can dynamically craft a specialized query, route it through an MCP server to a localized corporate Postgres database, retrieve internal performance metrics, and ingest those facts into its broader context window. At the same time, Google launched Notebooks in Gemini, which establishes persistent bidirectional synchronization. It marries the primary Gemini conversational interface with Notebook LM's heavily structured citation-enforced analytical engine. The release of the Notebook LM-MCP CLI server integration routes requests programmatically, allowing external AI agents running inside local coding environments to query a user's curated private Google Notebook LM environments. When a local agent submits a query through this MCP tool, the Notebook LM backend structures the response payload to enforce strict academic citation standards. Alongside the text, it generates an explicit array containing a precise source ID, a mapped citation number, and the exact cited text. The inclusion of the verbatim text string allows for direct cross-referencing between the agent's claim and the specific passage in the original proprietary document. By utilizing MCP to connect local IDEs directly to the notebook LM backend, developers completely bypass the heavy cognitive load of local document parsing. They eliminate local RAG hallucinations and replace them with a secure, highly verified data bridge. The April 2026 releases present a unified software architecture. It combines a stateful asynchronous transport layer, aggressively parameter-driven compute variants, and a standardized MCP data bridge. This integrated stack solves the direct trade-off between the speed of research and the exhaustiveness of the analysis. Organizations offload highly intensive analytical processes to asynchronous background systems. Multi-quarter financial reviews and regulatory evaluations run overnight, at a fraction of the cost of an annual oversight, while maintaining strict adherence to provided facts. Organizations can deploy these capabilities at scale through standardized protocols like MCP and the bidirectional sync of Notebook LM, bypassing the need for elaborate custom engineering. The Gemini Deep Research Ecosystem establishes the foundational infrastructure for rigorous, autonomous, and verifiable knowledge generation.

⚙️ Pipeline jobs

StageStatusAtt.UpdatedError
download done 1/3 2026-07-20 15:09:15
transcribe done 1/3 2026-07-20 15:09:24
summarize done 1/3 2026-07-20 15:09:50
embed done 1/3 2026-07-20 15:09:51

📄 Описание YouTube

Показать
Enterprise AI systems struggled with stateless APIs, network timeouts, and fragile orchestration for long-horizon tasks. This breakdown explains how Google Gemini Deep Research introduces a stateful interactions API, asynchronous execution lifecycle, and persistent session architecture to support multi-step AI workflows. It covers preview vs max model variants, high-token compute scaling, collaborative planning to prevent trajectory drift, and MCP data integration for secure enterprise environments. You’ll see how AI agents now run overnight batch research, connect to private databases, and return verifiable, citation-backed outputs using NotebookLM synchronization and structured data pipelines.

TimeStamps: 
0:00 Enterprise AI bottlenecks and stateless API limits
0:53 Gemini Deep Research architecture overview
1:17 Preview vs Max compute model separation
1:48 Long-horizon workflow engineering challenges
2:16 Interactions API and persistent session design
2:45 Asynchronous execution and polling lifecycle
3:25 Background processing and batch job orchestration
4:02 Compute scaling with deep research max variant
5:23 Collaborative planning and trajectory control
6:37 MCP protocol and enterprise data integration

🧠 Enterprise AI limits → ⚙️ Stateful architecture → 🔄 Async workflows → 📊 Deep research compute → 🧭 Planning control → 🔐 MCP data pipelines → 📚 Verified citations

This architecture shifts AI from simple prompt-response tools into scalable research infrastructure. With asynchronous agents, high-token compute, and secure data pipelines, teams reduce manual analysis while increasing output depth. The advantage comes from controlling execution flow, validating sources, and scaling autonomous research systems without sacrificing accuracy or cost efficiency.

#AIInfrastructure #EnterpriseAI #DeepResearch