跳到正文
TakoAPI
返回技能列表

azure-ai-agents-py

由 thegovind 提供

DevOps & Cloud
1.8k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Build AI agents using the Azure AI Agents Python SDK.

描述

该技能的功能

Python SDK for building agents hosted on Azure AI Foundry. Handles the full agent lifecycle: creating agents, managing conversation threads, processing runs, and streaming responses. Supports tools including Code Interpreter, File Search, Bing Grounding, Azure AI Search, Function Calling, OpenAPI, and MCP.

Gives direct SDK access to Azure AI Foundry's agent infrastructure with full control over thread management, tool configuration, and streaming, without higher-level framework abstractions.

何时使用

  • Building a document Q&A agent over uploaded PDFs using File Search
  • Running on-demand Python code execution via Code Interpreter
  • Grounding agent responses with live web search via Bing
  • Streaming real-time agent replies in a chat interface
  • Calling internal REST APIs from an agent using the OpenAPI tool

示例工作流

输入

User asks: 'What is the weather in Seattle?'

智能体
  1. 1

    Create an agent with a FunctionTool wrapping a get_weather Python function

  2. 2

    Create a conversation thread and add the user message

  3. 3

    Call create_and_process with the toolset to auto-execute the function

  4. 4

    Retrieve completed run assistant messages from the thread

  5. 5

    Return the weather response text

输出

Weather in Seattle: 58F, cloudy

前置要求

  • Azure subscription
  • Azure AI Foundry project with a deployed model
  • PROJECT_ENDPOINT environment variable (from Azure AI Foundry project settings)
  • MODEL_DEPLOYMENT_NAME environment variable (name of your deployed model)

安装

clawhub install thegovind/azure-ai-agents-py

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接