Azure 官方智能体 SDK · 企业级工具链
Azure官方Python SDK,用于在Azure AI Foundry上构建托管智能体,集成代码解释器、文件搜索、Bing搜索等7大工具,适合企业级AI应用开发。
使用说明
核心用法
azure-ai-agents-py 是微软 Azure 官方提供的低阶 Python SDK,用于在 Azure AI Foundry 平台上构建、部署和管理 AI 智能体(Agents)。开发者通过 AgentsClient 完成完整的智能体生命周期管理:创建智能体 → 创建对话线程 → 发送消息 → 执行运行 → 获取响应。
SDK 提供 7 类核心工具:代码解释器(Code Interpreter)、文件搜索(File Search/RAG)、Bing 联网搜索、Azure AI Search 索引检索、函数调用(Function Calling)、OpenAPI REST 接口调用,以及 MCP(Model Context Protocol)服务器接入。工具采用声明式配置,支持自动执行或自定义处理。
关键特性包括:同步/异步双模式客户端(AgentsClient / aio.AgentsClient)、实时流式响应(Streaming with AgentEventHandler)、结构化输出(JSON Mode / JSON Schema)、向量存储管理,以及线程持久化与对话续接。
原始说明
Build AI agents using the Azure AI Agents Python SDK (azure-ai-agents). Use when creating agents hosted on Azure AI Foundry with tools (File Search, Code Interpreter, Bing Grounding, Azure AI Search, Function Calling, OpenAPI, MCP), managing threads and messages, implementing streaming responses, or working with vector stores. This is the low-level SDK – for higher-level abstractions, use the agent-framework skill instead.
还没有玩家留言,来抢沙发吧~
登录后即可发表你的资源评测、评分,与其他玩家交流