Skills Plugins MCP Prompt Model 博客 我的中心
开发编程 #ai #agent #testing

deploying-scalable-agents

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 gate, release gate, human approval workflow, agent observability, agent tracing, agent cost optimisation, smoke test a hosted agent, production customer support agent. DO NOT USE FOR: building your first agent (start with Lesson 01), running agents locally on-device (use local-ai-agents / Lesson 17), Azure infrastructure provisioning unrelated to agents, non-Foundry deployment targets.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=microsoft-ai-agents-for-beginners-agents-skills-deploying-scalable-agents-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name deploying-scalable-agents description 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 gate, release gate, human approval workflow, agent observability, agent tracing, agent cost optimisation, smoke test a hosted agent, production customer support agent. DO NOT USE FOR: building your first agent (start with Lesson 01), running agents locally on-device (use local-ai-agents / Lesson 17), Azure infrastructure provisioning unrelated to agents, non-Foundry deployment targets. license MIT 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 >= threshold and 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 like routed.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 identity, validate outputs, rate-limit, never expose secrets. Guardrails for the assistant Prefer the canonical FoundryChatClient(...) + provider.as_agent(...) pattern used across the course. Do not promise live-Azure results you have not verified; recommend the smoke-test workflow to confirm a deployment. Keep evaluation and cost advice tied together: evaluation sets the quality floor, routing/caching keep cost near that floor.
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。