hosted-agents-v2-py - 使用 Azure AI Projects SDK 构建托管 Agent
使用 Azure AI Projects SDK 的 ImageBasedHostedAgentDefinition 在 Azure AI Foundry 中构建基于容器的托管 Agent。
标签
更新于: 2026-09-21该技能可以做什么
- 创建托管 Agent 版本
- 列出 Agent 版本
- 删除 Agent 版本
输入
- Azure AI 项目终结点
- 容器镜像路径
- 环境变量
输出
- 已创建的 Agent 版本状态
- Agent 版本列表
要求
- azure-ai-projects 包 2.0.0b3 或更高版本
- azure-identity 包
- Azure Container Registry 容器镜像
- 为托管身份授予 AcrPull 角色
- enablePublicHostingEnvironment 为 true 的 Capability Host
