Gemini API में Managed Agents का विस्तार: Background Tasks, Remote MCP और अधिक

Google ने production AI agents बनाने वाले developers के लिए एक महत्वपूर्ण कदम उठाया है। Gemini API में Managed Agents के लिए नई capabilities की घोषणा की गई — background execution, remote MCP server integration, custom function calling, और credential refresh। यह update…

Share
Editorial illustration: A control panel or dashboard viewed from above, with multiple switches, dials, and indicator lights  — MonstarX

Gemini API में Managed Agents का विस्तार: Background Tasks, Remote MCP और अधिक

Google ने production AI agents बनाने वाले developers के लिए एक शांत लेकिन महत्वपूर्ण कदम उठाया है। 7 जुलाई, 2026 को, Google DeepMind टीम ने Gemini API में Managed Agents के लिए नई capabilities की घोषणा की — background execution, remote MCP server integration, custom function calling, और credential refresh। Gemini API में Managed Agents को background tasks और remote MCP support के साथ विस्तारित करना सिर्फ एक feature update नहीं है; यह एक संकेत है कि industry autonomous AI agents के लिए "production-ready" का वास्तविक अर्थ समझने लगी है।

अगर आप flaky long-running agent jobs, brittle tool integrations, या sessions के बीच credentials manage करने के constant overhead से frustrated हैं — तो यह announcement आपका पूरा ध्यान देने लायक है।

क्या हुआ

Gemini API में Google के Managed Agents developers को एक single endpoint call करने और heavy lifting को offload करने देते हैं — reasoning, code execution, package installation, file management, और web browsing — एक isolated cloud sandbox को। आप runtime manage नहीं करते। आप execution environment की babysitting नहीं करते। आप बस describe करते हैं कि आप क्या करना चाहते हैं और Gemini बाकी सब handle करता है।

जुलाई 2026 का update इस foundation के ऊपर चार concrete capabilities जोड़ता है:

  • Background execution: अपने interaction call में background: true pass करें और API तुरंत एक ID return करता है। आपके client को HTTP connection को open रखने की जरूरत नहीं है। इसके बजाय, यह status के लिए poll कर सकता है, progress updates stream कर सकता है, या बाद में reconnect कर सकता है जबकि agent server-side पर काम पूरा करता है। यह open connections के ऊपर long-running tasks की fragility problem को directly solve करता है।
  • Remote MCP server integration: Agents अब remote Model Context Protocol (MCP) servers से connect कर सकते हैं, जिसका मतलब है कि वे external tools और data sources तक पहुंच सकते हैं बिना आपको हर integration के लिए custom glue code बनाने की जरूरत के।
  • Custom function calling: Developers अपने खुद के functions define कर सकते हैं और उन्हें agent के लिए expose कर सकते हैं, जो workflow के भीतर agent क्या actions ले सकता है इस पर precise control देता है।
  • Interactions के बीच credential refresh: Agents अब session के बीच credentials को refresh कर सकते हैं, जो किसी भी workflow के लिए critical है जो authentication boundaries को span करता है — think OAuth tokens expiring mid-task एक multi-step data pipeline के दौरान।

Announcement में SDK examples @google/genai JavaScript package का उपयोग करते हैं, Python और cURL equivalents Antigravity agent documentation में available हैं। शुरुआत करना एक single install है: npm install @google/genai

यहां जो notable है वह कोई single feature नहीं है — यह pattern है। इनमें से प्रत्येक addition production agent deployments में एक known failure mode को directly address करता है। Google clearly developer feedback को सुन रहा है बजाय use cases की खोज में capabilities ship करने के।

Asia के लिए यह क्यों महत्वपूर्ण है

Asia का developer ecosystem AI agents को एक ऐसी गति से build कर रहा है जो अक्सर available tools की infrastructure maturity को outstrip करती है। Southeast Asia, South Korea, Japan, और India में, teams agents को deploy कर रहे हैं logistics coordination और financial document processing से लेकर multiple languages में customer support automation तक। लगभग हर production deployment में common thread क्या है? Hard problems AI reasoning नहीं हैं — वे plumbing हैं।

Background execution इस context में बहुत महत्वपूर्ण है। Asian markets में कई high-value workflows inherently long-running हैं। एक compliance agent Singapore में regulatory filings process कर रहा है, एक supply chain agent Vietnam और China के बीच cross-border invoices reconcile कर रहा है, या एक document analysis agent सैकड़ों Thai-language contracts के माध्यम से काम कर रहा है — इनमें से कोई भी seconds में complete नहीं होता। HTTP connection को minutes के लिए open रखना सिर्फ fragile नहीं है; mobile-first markets में variable connectivity के साथ, यह अक्सर असंभव है।

Remote MCP integration Asia tech landscape के लिए equally significant है। Region के enterprise systems fragmented हैं — legacy ERP platforms, regional SaaS tools, local payment gateways, और government APIs का एक mix जो हमेशा Western API conventions को follow नहीं करते। Agents को remote MCP servers से connect करने की ability का मतलब है कि teams एक बार thin adapter layers build कर सकते हैं और उन्हें agent workflows के बीच reuse कर सकते हैं, बजाय हर नए agent के लिए integrations को scratch से rebuild करने के।

Credential refresh एक footnote की तरह लगता है लेकिन यह actually कई real-world deployments के लिए एक blocker है। Indonesia, Thailand, और Philippines जैसे markets में government और financial APIs frequently short-lived tokens use करते हैं। एक agent जो अपने credentials को mid-task refresh नहीं कर सकता simply certain workflows को complete नहीं कर सकता human intervention के बिना — जो automation के पूरे purpose को defeat करता है।

MonstarX पर building करने वाले founders के लिए, Asia का AI-native dev platform, ये Gemini API updates serious agent products बनाने पर infrastructure tax को lower करते हैं। Primitives बेहतर हो रहे हैं। Question "क्या हम यह काम कर सकते हैं?" से "क्या building के लायक है?" में shift होता है।

Developers के लिए यह क्या मायने रखता है

आइए concrete हों कि आप अब क्या अलग तरीके से build कर सकते हैं।

Custom infrastructure के बिना Async agent pipelines। Background execution से पहले, एक long agent task को reliably run करने का मतलब था अपना खुद का job queue build करना — Redis, BullMQ, या एक cloud task service — सिर्फ async execution layer को manage करने के लिए। अब आप यह API से free में पाते हैं। आपकी architecture simpler हो जाती है। एक workflow जिसके लिए पहले एक queue worker, एक status database, और एक webhook handler की जरूरत थी अब एक single API call with polling हो सकता है।

यहां practice में pattern है:

// Task को start करें — तुरंत एक interaction ID के साथ return करता है
const interaction = await client.interactions.create({
  model: "gemini-2.0-flash",
  prompt: "Q2 financial reports को analyze करें और anomalies को flag करें",
  background: true
});

// बाद में poll करें या reconnect करें
const result = await client.interactions.get(interaction.id);

यह एक long-running agent task के लिए पूरी async infrastructure है। कोई queue नहीं। कोई worker process नहीं। कोई status table नहीं।

Remote MCP के माध्यम से Tool ecosystems। MCP protocol एक standard way के रूप में traction gain कर रहा है tools को AI agents के लिए expose करने के लिए। Remote MCP support का मतलब है कि आप अब एक Gemini agent को किसी भी MCP-compatible server से connect कर सकते हैं — internal tools, third-party APIs, specialized data sources — बिना हर एक के लिए bespoke function wrappers लिखे। अगर आपकी team पहले से ही other tooling के लिए MCP servers build करने में invest कर चुकी है, तो वह investment अब directly Gemini agents को carry over करता है।

Custom functions के साथ Composable agent workflows। Custom function calling आपको control layer देता है जो pure prompt-based agents में lack है। आप functions, उनके signatures, और उनके behavior को define करते हैं। Agent decide करता है कि उन्हें कब call करना है। यह pattern है जो agents को production में deploy करने के लिए trustworthy बनाता है — आप model को अपने systems के लिए open-ended access नहीं दे रहे, आप इसे predictable interfaces के साथ well-defined tools का एक set दे रहे हैं।

Credential management जो long sessions को break नहीं करता। किसी भी agent के लिए जो authenticated APIs को touch करता है, credential refresh अब एक first-class concern है बजाय एक afterthought के। Agents build करें जो hours के ऊपर operate करते हैं बिना एक human को mid-task re-authenticate करने की जरूरत के। यह particularly relevant है overnight batch processing workflows के लिए — the kind of background jobs जो most valuable हैं precisely