agent-framework-azure-ai-py
Skill by sickn33
Shows how to build persistent agents on Azure AI Foundry with the Microsoft Agent Framework Python SDK. Aimed at Python developers building Azure-hosted agents with tools, streaming and conversation threads.
Install agent-framework-azure-ai-py
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/agent-framework-azure-ai-py ~/.claude/skills/agent-framework-azure-ai-pyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install agent-framework-azure-ai-py in Claude Code
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/agent-framework-azure-ai-py ~/.gemini/antigravity-cli/skills/agent-framework-azure-ai-pyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install agent-framework-azure-ai-py in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill provides code patterns for building persistent agents on Azure AI Foundry with the Microsoft Agent Framework Python SDK. It shows how to create an agent with AzureAIAgentsProvider, pass Python functions as tools, and use hosted code interpreter, web search and file search tools. It also covers streaming responses, conversation threads, structured outputs and MCP tools, both service-managed and client-managed.
The examples follow an older Agent Framework generation and are not verified against the current package. The source tells readers to identify the installed version and follow the matching official sample before adapting the code. It is aimed at Python developers who can manage the Azure tenant, project, role and cost controls. Creating agents and running prompts sends data to Azure services and can incur charges.
Written from the project's SKILL.md and checked against it.
What it can do
- Create or get agentsCreates a new agent on Azure AI, or retrieves an existing agent by ID.
- Function toolsPasses plain Python functions to the agent as tools.
- Hosted code interpreterLets the agent execute Python code.
- Hosted web searchLets the agent search the web through Bing.
- Hosted file searchLets the agent search vector stores.
- MCP toolsConnects service-managed or client-managed MCP servers as agent tools.
- Streaming responsesStreams agent output in chunks with run_stream.
- Conversation threadsKeeps context across turns using get_new_thread.
- Structured outputsReturns responses matching a Pydantic model through response_format.
What you need
- Azure AI Foundry project endpoint
- Azure sign-in through Azure CLI or DefaultAzureCredential
- Model deployment such as gpt-4o-mini
- Microsoft Agent Framework Python SDK
- Bing connection ID for web search
Try asking
- Build an Azure AI agent that answers weather questions with a Python function tool.
- Show me how to stream responses from a persistent Foundry agent.
- Create a thread-based agent that remembers context across two questions.
Good to know
- The examples use an older SDK generation and are not verified against the current package.
- Do not combine the legacy classes with an unpinned latest install.
- Closing clients does not delete hosted agents, files, vector stores or threads.
- Prompts are not access controls, so tenant and resource checks belong in tools.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/agent-framework-azure-ai-py/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
UPSTREAM-LICENSE.txt1 KB -
UPSTREAM-NOTICE.md2 KB -
references/advanced.md14 KB -
references/mcp.md8 KB
Show all 7 files
-
references/threads.md8 KB -
references/tools.md8 KB
Alternatives to agent-framework-azure-ai-py
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
agent-framework-azure-ai-py: common questions
Does this skill work with the latest Agent Framework package?
The source says the examples are not verified against the current package. It advises identifying the installed version and using the matching official API or sample.
Which Azure services does it need?
It uses Azure AI Foundry through a project endpoint and a model deployment. Azure credentials come from Azure CLI or DefaultAzureCredential.
Does closing the client delete hosted agents?
No. The source says closing clients does not delete hosted agents, files, vector stores or threads, so cleanup has to be done separately.
How do I install agent-framework-azure-ai-py?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is agent-framework-azure-ai-py free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is agent-framework-azure-ai-py safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to agent-framework-azure-ai-py?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
