deploying-scalable-agents
यह क्या करती है
यह स्किल AI एजेंट को प्रोटोटाइप से प्रोडक्शन डिप्लॉयमेंट तक ले जाने का मार्गदर्शन करती है। जो टीमें चाहती हैं कि उनका एजेंट भरोसे से चले, उस पर नज़र रखी जाए और हर रिलीज़ से पहले टेस्ट हो, उनके लिए यह है।
कब इस्तेमाल करें
- ✓जब आप काम करने वाले एजेंट को Microsoft Foundry पर होस्टेड और वर्शन वाली सेवा के रूप में डिप्लॉय करना चाहें।
- ✓जब नया एजेंट वर्शन लाइव होने से पहले आपको मंज़ूरी के चरण, कैशिंग या मूल्यांकन जाँच चाहिए।
- ✓जब प्रोडक्शन में चल रहे एजेंट में ट्रेसिंग और निगरानी जोड़नी हो।
Skill का लिंक
https://github.com/microsoft/ai-agents-for-beginners/blob/main/.agents/skills/deploying-scalable-agents/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे एजेंट प्रोटोटाइप को लेकर निगरानी के साथ Microsoft Foundry पर डिप्लॉय करने में मदद कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आपके प्रोटोटाइप की समीक्षा करता है और डिप्लॉयमेंट का पैटर्न सुझाता है। फिर वह मॉडल रूटिंग, मंज़ूरी के चरण, निगरानी और डिप्लॉयमेंट के बाद smoke tests जैसे हिस्से जोड़ता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Deploying Scalable Agents with Microsoft Foundry
Companion skill for Lesson 16 – Deploying Scalable Agents. Use it to help a learner move an agent from prototype to a scalable, observable production deployment. Ground every recommendation in the lesson content and the runnable notebook; do not invent Foundry APIs.
Triggers
Activate this skill when a learner wants to:
- Deploy an agent to Microsoft Foundry as a hosted agent and make it versioned/observable.
- Choose between client-hosted, hosted-agent, and agent-workflow deployment patterns.
- Add model routing, response caching, or bounded concurrency to control latency and cost.
- Add an evaluation gate so a bad agent version cannot ship.
- Add a human-in-the-loop approval step for high-risk actions.
- Instrument an agent with OpenTelemetry tracing for production observability.
- Smoke-test a deployed agent as a fast post-deploy gate.
Core mental model
A production agent is mostly the operational skeleton around the model (~80%), not the model itself. Map every recommendation to one of these concerns:
| Concern | Prototype → Production |
|---|---|
| Hosting | notebook → versioned hosted service |
| Identity | your az login → managed identity + scoped RBAC |
| State | in-memory → externalised thread/memory store |
| Failure | traceback → retries, fallbacks, alerts |
| Cost | "a few cents" → tracked, routed, cached, budgeted |
| Quality | eyeballing → automated evaluation gate |
| Trust | you approve → policy + human-in-the-loop |
Deployment patterns (pick one, or combine)
- Client-hosted — the reasoning loop runs in your process. Max control; you own scaling/state.
- Hosted agent (Foundry Agent Service) — Foundry hosts the loop, stores threads, enforces RBAC/content safety, shows the agent in the portal. Less control, far less operational surface.
- Agent workflow — multiple agents/tools composed into a graph with branching, approval nodes, and durable checkpoints.
Lifecycle (the loop that ships an agent)
create → version → evaluate (gate) → deploy hosted → observe online → collect failures → repeat.
Offline evaluation is a gate, not an afterthought — a version does not ship
unless it clears the threshold. Online observability feeds real failures back
into the offline test set.
Scaling and cost levers (in priority order)
- Right-size the model — use the smallest model that passes the evaluation gate.
- Route by complexity — small/fast model for simple requests, large model for real reasoning (DIY classifier or Foundry Model Router).
- Cache — serve near-duplicate requests without a model call.
- Stateless design + bounded concurrency — externalise state; retry with backoff.
Key patterns to reproduce
Point the learner at these from the notebook
16-python-agent-framework.ipynb:
- Request handler: cache → route by complexity → trace span → run → cache.
- Evaluation gate: score an offline test set; return
pass_rate >= thresholdand only deploy if true. - Human approval:
@tool(approval_mode="always_require")for actions like large refunds. - Tracing: wrap each request in
tracer.start_as_current_span(...)and set attributes likerouted.model,customer.id.
Smoke-testing a deployed agent
After deploy, verify the endpoint actually answers (a green deploy can still be
silent). Use the AI Smoke Test
action via .github/workflows/smoke-test.yml
with the catalog in tests/. The runner POSTs each
prompt to POST {project_endpoint}/agents/{agent_name}/endpoint/protocols/openai/responses
and asserts on the reply text. The identity needs the Azure AI User role at
Foundry project scope; the token audience must be https://ai.azure.com/.
Layer the gates: smoke test (reachable/responding, every deploy) → offline evaluation (good enough to ship, before promotion) → online evaluation (how is it doing in the wild, continuous).
Enterprise controls
- RBAC: give each hosted agent a managed identity with least privilege.
- MCP in production: treat every MCP server as an untrusted boundary — pin the version, scope its i
अक्सर पूछे जाने वाले सवाल
कौन से डिप्लॉयमेंट विकल्प कवर होते हैं?
यह client-hosted एजेंट, hosted एजेंट और agent workflows को कवर करती है।
यह लागत नियंत्रित करने में कैसे मदद करती है?
यह मॉडल रूटिंग, response caching और एक साथ चलने वाले अनुरोधों की सीमा पर चर्चा करती है।
क्या यह मानवीय मंज़ूरी जोड़ती है?
हाँ। इसमें उच्च-जोखिम वाली कार्रवाइयों के लिए मंज़ूरी का चरण शामिल है।
जानकारी
लेखक का मूल विवरण
Take a working agent prototype to a scalable, observable production deployment on Microsoft Foundry. Covers deployment patterns (client-hosted, hosted agents, agent workflows), the agent lifecycle, model routing, response caching, evaluation gates, human-in-the-loop approval, observability with OpenTelemetry, cost optimisation, and smoke-testing deployed agents with the AI Smoke Test action. Based on Lesson 16 of AI Agents for Beginners. USE FOR: deploy an agent to production, scale an agent, Microsoft Foundry hosted agent, Foundry Agent Service, model routing, response caching, evaluation gat
लोकप्रियता
- GitHub स्टार
- 79k
- रैंकिंग में स्थान
- #1724
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
azure-openai-to-responses
79kयह आपके एजेंट को Azure OpenAI Chat Completions इस्तेमाल करने वाले Python ऐप को नए Responses API पर, चरण-दर-चरण ले जाने में मदद करती है।
jupyter-notebook
79kप्रयोगों या चरण-दर-चरण ट्यूटोरियल के लिए तैयार टेम्पलेट से Jupyter notebook बनाने या सँवारने में आपके एजेंट की मदद करती है।
local-ai-agents
79kसिखाती है कि स्थानीय मॉडल और टूल्स से अपने कंप्यूटर पर पूरी तरह चलने वाले AI सहायक कैसे बनाएँ, बिना क्लाउड की ज़रूरत के।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।