AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

microsoft-foundry

Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent, managed harness agent, Copilot harness, voice agent, create/update/invoke/evaluate agent, add tool to agent, agent insights, batch/continuous eval, continuous monitoring, agent CI/CD, optimize/improve prompt, optimize agent instructions, Agent Optimizer, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure-prepare).

Original source
microsoft
License
MIT
Pinned revision
3f5b461b2314e01c400564051e92469114c5b68f

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read microsoft--microsoft-foundry at revision 3f5b461b2314e01c400564051e92469114c5b68f, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 151

foundry-agent/observe/references/optimize-deploy.md

Steps 6–7 — Optimize Prompt & Deploy New Version

Step 6 — Optimize Prompt

⛔ Guardrail: When optimizing after a dataset update, do NOT remove dataset rows or weaken evaluators to recover scores. Score drops on a harder dataset are expected — they mean test coverage improved, not that the agent regressed. Optimize for NEW failure patterns only.

Use prompt_optimize with:

| Parameter | Required | Description | |-----------|----------|-------------| | developerMessage | ✅ | Agent's current system prompt / instructions | | deploymentName | ✅ | Model for optimization (e.g., gpt-4o-mini) | | projectEndpoint or foundryAccountResourceId | ✅ | At least one required | | requestedChanges | | Concise improvement suggestions from cluster analysis |

Example requestedChanges: "Be more specific when answering geography questions", "Always cite sources when providing factual claims"

Use the optimized prompt returned by the tool. Do NOT manually rewrite.

Step 7 — Deploy New Version

Always confirm before deploying. Show the user a diff or summary of prompt changes and wait for explicit sign-off.

After approval:

  1. Use agent_update to create a new agent version with the optimized prompt
  2. Use agent_get to verify the updated version is running
  3. If the updated version is not running, read and follow the troubleshoot skill before continuing

Next Steps

When the new version is running → proceed to Step 8: Re-Evaluate.