hosted-agents-v2-py
Skill by sickn33
Builds container-based hosted agents in Azure AI Foundry using HostedAgentDefinition from the Azure AI Projects SDK. It is for developers who want to create, list and delete hosted agent versions from Python.
Install hosted-agents-v2-py
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/hosted-agents-v2-py ~/.claude/skills/hosted-agents-v2-pyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/hosted-agents-v2-py ~/.gemini/antigravity-cli/skills/hosted-agents-v2-pyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install hosted-agents-v2-py in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill shows how to create container-based hosted agents with HostedAgentDefinition from the Azure AI Projects SDK, version 2.3.0. It covers the Python code for creating an agent version from a container image, listing agent versions, and deleting a version. It also shows how to set CPU, memory, protocol versions and environment variables, and includes sync and async examples.
The skill is a set of instructions and code fragments, with no executable support files. It lists prerequisites such as pushing an image to Azure Container Registry, granting the project identity a registry role, and confirming capability host and region availability. It is aimed at developers who have an explicit need to create hosted agents in Azure AI Foundry and who can authorize cloud writes such as creating agents, granting roles and deleting versions.
Written from the project's SKILL.md and checked against it.
What it can do
- Create hosted agent versionCreates an agent version from a container image using HostedAgentDefinition and create_version.
- List agent versionsLists the versions of a named hosted agent using list_versions.
- Delete agent versionDeletes a specific hosted agent version using delete_version.
- Set resource allocationSets CPU and memory for the container, for example cpu of 2 and memory of 4Gi.
- Configure protocol versionsDeclares the RESPONSES protocol at version 2.0.0 for the agent endpoint.
- Pass environment variablesPasses non-secret configuration such as the project endpoint and model deployment name to the container.
- Async client patternShows how to create a hosted agent with the async AIProjectClient and async credential.
What you need
- Python
- azure-ai-projects 2.3.0 and azure-identity packages
- An Azure AI Foundry project endpoint
- A container image pushed to Azure Container Registry
- Permission to grant the project identity a registry role
Try asking
- Create a hosted agent version from my reviewed container image in Foundry
- List all versions of my-hosted-agent in my Azure AI project
- Show me how to set CPU and memory for a hosted agent container
Good to know
- Creating agents, granting roles and deleting versions are cloud writes and need user authorization.
- Documentation inspection is not a cloud integration test. The installed schema and service support must be validated before provisioning.
- Resource sizes shown are illustrative and regional or SKU limits must be verified.
- The source metadata marks this skill's risk as critical.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/hosted-agents-v2-py/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to hosted-agents-v2-py
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
hosted-agents-v2-py: common questions
What does HostedAgentDefinition do?
The source describes it as the model used to define a container-based hosted agent in the Azure AI Projects SDK. It takes protocol versions, a container configuration, CPU, memory and environment variables.
Which SDK version does this skill use?
It uses azure-ai-projects version 2.3.0 with azure-identity. The source says to validate the installed schema and service support before provisioning.
Does the skill grant container registry access automatically?
No. The source says the project identity needs a registry role, currently Container Registry Repository Reader, and that the user must grant it.
How do I install hosted-agents-v2-py?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is hosted-agents-v2-py free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is hosted-agents-v2-py safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to hosted-agents-v2-py?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
