スキル agent-framework-azure-ai-py
📦

agent-framework-azure-ai-py

安全 ⚡ スクリプトを含む⚙️ 外部コマンド🌐 ネットワークアクセス

Build Azure AI Foundry Agents

Create persistent AI agents on Azure AI Foundry using the Microsoft Agent Framework Python SDK. This skill provides code examples for building agents with hosted tools, function tools, and conversation threads.

対応: Claude Codex Code(CC)
🥉 75 ブロンズ
1

スキルZIPをダウンロード

2

Claudeでアップロード

設定 → 機能 → スキル → スキルをアップロードへ移動

3

オンにして利用開始

テストする

「agent-framework-azure-ai-py」を使用しています。 Create a basic Azure AI agent

期待される結果:

The agent will be created with AzureAIAgentsProvider. It can then process user queries and return responses using the configured instructions and tools.

「agent-framework-azure-ai-py」を使用しています。 What's the weather in Seattle?

期待される結果:

Weather in Seattle: 72°F, sunny

「agent-framework-azure-ai-py」を使用しています。 Calculate factorial of 20

期待される結果:

The agent uses HostedCodeInterpreterTool to execute Python code and return the result: 2432902008176640000

セキュリティ監査

安全
v1 • 2/24/2026

All 57 static findings are false positives. The skill contains only documentation and code examples for building Azure AI Foundry agents using the Microsoft Agent Framework Python SDK. The detected patterns (import statements, async context managers, markdown backticks, placeholder URLs) are legitimate documentation elements, not security risks.

1
スキャンされたファイル
339
解析された行数
3
検出結果
1
総監査数
監査者: claude

品質スコア

38
アーキテクチャ
100
保守性
87
コンテンツ
50
コミュニティ
100
セキュリティ
100
仕様準拠

作れるもの

Build Customer Service Agents

Create persistent AI agents that maintain conversation context across multiple interactions

Research Assistant with Tools

Build agents that can search the web, execute code, and analyze results

Enterprise Workflow Automation

Create agents that integrate with enterprise systems via MCP tools

これらのプロンプトを試す

Basic Agent Setup
Create an Azure AI Foundry agent named 'MyAgent' with the instruction 'You are a helpful assistant' using the agent-framework-azure-ai-py skill.
Agent with Function Tools
Create an agent that can get weather information. Define a get_weather function that takes a location parameter and returns weather data.
Agent with Hosted Tools
Build an agent using HostedCodeInterpreterTool and HostedWebSearchTool that can execute Python code and search the web.
Multi-turn Conversation
Create an agent that maintains conversation context across multiple turns using thread management.

ベストプラクティス

  • Always use async context managers (async with) for proper resource cleanup
  • Pass functions directly to the tools parameter - they are auto-converted to AIFunction
  • Use Annotated[type, Field(description=...)] for function parameters to provide clear descriptions
  • Use get_new_thread() for multi-turn conversations to maintain context

回避

  • Do not use synchronous operations inside async functions - this will cause deadlocks
  • Avoid hardcoding credentials - use AzureCliCredential or DefaultAzureCredential
  • Do not skip the async context manager - always use 'async with' for providers
  • Avoid passing non-async functions directly without proper wrapping

よくある質問

What is Azure AI Foundry?
Azure AI Foundry is Microsoft's platform for building, deploying, and managing AI applications and agents at scale.
Do I need an Azure subscription?
Yes, you need an Azure subscription with Azure AI Foundry provisioned to use this skill.
What authentication methods are supported?
Use AzureCliCredential for development and DefaultAzureCredential for production deployments.
Can I use Claude Code with Azure AI agents?
Yes, this skill works with Claude, Codex, and Claude Code for building Azure AI Foundry agents.
What are hosted tools?
Hosted tools are Azure-managed capabilities including code interpreter, file search, and web search that agents can use.
How do I manage conversation state?
Use thread objects (get_new_thread()) to maintain conversation context across multiple agent interactions.

開発者の詳細

ファイル構成

📄 SKILL.md