foundry-hosted-agent-validation
Installation
SKILL.md
Validating a Foundry Hosted Agent Sample
A hosted agent sample is "validated" when it passes three independent checks, plus cleanup:
- Local, native runtime — run the sample's own entry point
(
python main.py) and invoke it over HTTP. - Local, via
azd ai agent run— theazdlocal dev loop. - Deployed —
azd deployto Foundry, then invoke the hosted agent.
Each check must succeed for single-turn and multi-turn (session /
previous_response_id) conversation. Always end with cleanup (delete the
deployed agent, remove the temp azd project, restore the sample dir).
Read the sample's own
README.mdand the parent.../foundry-hosted-agents/README.mdfirst — they define the run/deploy commands and any sample-specific payload. This skill captures the process and the non-obvious gotchas the READMEs don't.