agent-framework-azure-ai-py
Créer des agents Azure AI Foundry
Créez des agents IA persistants sur Azure AI Foundry à l'aide du SDK Python Microsoft Agent Framework. Cette compétence fournit des exemples de code pour créer des agents avec des outils hébergés, des outils de fonction et des fils de conversation.
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "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
التدقيق الأمني
آمن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.
عوامل الخطر
⚡ يحتوي على سكربتات (9)
⚙️ الأوامر الخارجية (40)
🌐 الوصول إلى الشبكة (2)
درجة الجودة
ماذا يمكنك بناءه
Créer des agents de service client
Créez des agents IA persistants qui maintiennent le contexte de conversation entre plusieurs interactions
Assistant de recherche avec outils
Créez des agents capables de rechercher sur le web, d'exécuter du code et d'analyser les résultats
Automatisation des processus métier entreprise
Créez des agents qui s'intègrent aux systèmes d'entreprise via des outils MCP
جرّب هذه الموجهات
Create an Azure AI Foundry agent named 'MyAgent' with the instruction 'You are a helpful assistant' using the agent-framework-azure-ai-py skill.
Create an agent that can get weather information. Define a get_weather function that takes a location parameter and returns weather data.
Build an agent using HostedCodeInterpreterTool and HostedWebSearchTool that can execute Python code and search the web.
Create an agent that maintains conversation context across multiple turns using thread management.
أفضل الممارسات
- Utilisez toujours les gestionnaires de contexte async (async with) pour un nettoyage approprié des ressources
- Passez les fonctions directement au paramètre tools - elles sont automatiquement converties en AIFunction
- Utilisez Annotated[type, Field(description=...)] pour les paramètres de fonction afin de fournir des descriptions claires
- Utilisez get_new_thread() pour les conversations multi-tours afin de maintenir le contexte
تجنب
- N'utilisez pas d'opérations synchrones à l'intérieur de fonctions async - cela provoquera des blocages
- Évitez de coder en dur les identifiants - utilisez AzureCliCredential ou DefaultAzureCredential
- Ne sautez pas le gestionnaire de contexte async - utilisez toujours 'async with' pour les fournisseurs
- Évitez de passer des fonctions non-async directement sans encapsulation appropriée
الأسئلة المتكررة
Qu'est-ce que Azure AI Foundry ?
Ai-je besoin d'un abonnement Azure ?
Quelles méthodes d'authentification sont prises en charge ?
Puis-je utiliser Claude Code avec les agents Azure AI ?
Que sont les outils hébergés ?
Comment gérer l'état de la conversation ?
تفاصيل المطور
المؤلف
sickn33الترخيص
MIT
المستودع
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/agent-framework-azure-ai-pyمرجع
main
بنية الملفات
📄 SKILL.md