Build container-based Foundry Agents using Azure AI Projects SDK with ImageBasedHostedAgentDefinition. Use when creating hosted agents that run custom code in Azure AI Foundry with your own container images. Triggers: "ImageBasedHostedAgentDefinition", "hosted agent", "container agent", "Foundry Agent", "create_version", "ProtocolVersionRecord", "AgentProtocol.RESPONSES", "custom agent image".
84
77%
Does it follow best practices?
Impact
100%
1.31xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/agents-v2-py/SKILL.mdCore hosted agent creation with SDK
SDK version constraint
50%
100%
azure-identity in requirements
100%
100%
DefaultAzureCredential import
100%
100%
Correct model imports
50%
100%
create_version method used
100%
100%
ImageBasedHostedAgentDefinition used
0%
100%
ProtocolVersionRecord with RESPONSES
100%
100%
Endpoint from environment
100%
100%
No hardcoded secrets
100%
100%
environment_variables dict
100%
100%
Code interpreter tool format
0%
100%
DefaultAzureCredential usage
100%
100%
MCP tools, resource limits, production best practices
MCP tool type field
100%
100%
MCP server_label field
100%
100%
MCP server_url field
100%
100%
file_search tool included
100%
100%
CPU within valid range
100%
100%
Memory within valid range
100%
100%
No latest tag in production
100%
100%
try/except around creation
100%
100%
list_versions called
100%
100%
delete_version called
100%
100%
Endpoint from environment
100%
100%
create_version method
100%
100%
Async agent creation pattern
Async credential import
100%
100%
Async client import
100%
100%
Models imports correct
0%
100%
Async credential context manager
0%
100%
Async client context manager
100%
100%
Await create_version
0%
100%
ProtocolVersionRecord RESPONSES v1
0%
100%
asyncio.run entrypoint
100%
100%
Endpoint from environment
100%
100%
SDK version constraint
0%
100%
ae2cadd
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.