LaunchKit · 2026
Back to Skills

agent-framework-azure-ai-py

Build Azure AI Foundry agents.

1
1.8k downloads
by @thegovind

Setup & Installation

openclaw skills install @thegovind/agent-framework-azure-ai-py

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install agent-framework-azure-ai-py

What This Skill Does

Build persistent agents on Azure AI Foundry using the Microsoft Agent Framework Python SDK. Supports function tools, hosted tools like code interpreter and Bing web search, MCP server integration, conversation threads, streaming responses, and structured Pydantic outputs.

Azure AI Foundry manages agent persistence and tool execution server-side, so you don't need to maintain your own state or tool infrastructure.

When to use it

  • Running multi-turn conversations with persistent thread state
  • Executing Python code inside an agent to analyze or transform data
  • Searching the web via Bing within an automated agent workflow
  • Returning typed structured outputs from agent queries using Pydantic models
  • Connecting agents to MCP servers for extended tool capabilities

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Search for Python best practices and give me a structured summary

AGENT
  1. 1Initialize AzureAIAgentsProvider with Azure credentials
  2. 2Create agent with HostedWebSearchTool and an AnalysisResult Pydantic response format
  3. 3Run agent with user query on a new conversation thread
  4. 4Await response and validate against AnalysisResult model
  5. 5Return structured object with summary, key_findings, and confidence
OUTPUT

AnalysisResult object with summary string, key_findings list, and confidence float

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Azure subscription with AI Foundry project accessAZURE_AI_PROJECT_ENDPOINT environment variableAZURE_AI_MODEL_DEPLOYMENT_NAME environment variableBING_CONNECTION_ID environment variable (required only for web search)