azure-ai-projects-py
Build Azure AI Apps with Foundry SDK
Microsoft FoundryでAzure AI Projects Python SDKを使用してAIアプリケーションを構築します。このスキルでは、エージェントの作成、スレッドの管理、ツール構成、評価の実行に関する包括的なドキュメントを提供します。
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "azure-ai-projects-py". Create a basic agent with CodeInterpreterTool
النتيجة المتوقعة:
The agent is created successfully with ID 'agent-123abc'. Tools enabled: CodeInterpreterTool. You can now create threads and runs with this agent.
استخدام "azure-ai-projects-py". Show me how to list deployments
النتيجة المتوقعة:
Available deployments: ['gpt-4o-mini', 'gpt-4o', 'o1-mini']. You can use these model names when creating agents.
التدقيق الأمني
آمنAll 74 static findings are false positives. The file is a markdown documentation file (SKILL.md) containing code examples for the Azure AI Projects Python SDK. The 'external_commands' detections are markdown code fences, not shell execution. The 'network' detection is a placeholder URL template in documentation. The 'env_access' detections are documentation examples showing SDK configuration. No actual executable code or malicious patterns exist. This is a legitimate documentation skill for Microsoft's Azure Foundry SDK.
درجة الجودة
ماذا يمكنك بناءه
Microsoft FoundryでAIエージェントを構築
Azure AI Projects SDKを使用して、Pythonコードの実行、ファイルの検索、外部API呼び出しが可能なインテリジェントエージェントを作成します。
エージェントのツールと機能を構成
コード解釈、ファイル検索、Bingグラウンディング、カスタム関数呼び出しなどの機能をエージェントに追加します。
エージェント出力に対して評価を実行
組み込みエバリュエータまたはカスタムエバリュエータを使用して、エージェントの品質と要件への準拠をテスト・測定します。
جرّب هذه الموجهات
Create an Azure AI Projects agent named 'my-agent' using the gpt-4o-mini model with the instruction 'You are a helpful assistant.' Use the AIProjectClient with DefaultAzureCredential.
Create an agent with CodeInterpreterTool and FileSearchTool enabled. The agent should be able to execute Python code and search through uploaded documents.
Show me how to create a thread, add a user message, create and process a run, and retrieve the assistant response using the Azure AI Projects SDK.
Create a versioned agent using PromptAgentDefinition with version label 'v1.0'. Include instructions for a customer support specialist and show how to deploy it.
أفضل الممارسات
- 非同期AIProjectClientの場合はコンテキストマネージャー(async with)を使用して、適切なリソースクリーンアップを確保
- 本番環境デプロイ用に安定したAPIを維持するため、PromptAgentDefinitionでバージョン管理されたエージェントを作成
- リソースリークを避けるため、不要になったエージェントはclient.agents.delete_agent(agent.id)でクリーンアップ
تجنب
- 資格情報をコードにハードコードせず、常にDefaultAzureCredentialまたは環境変数を使用
- Foundry固有の機能(接続やデプロイメントなど)が必要な場合は、低レベルのAgentsClientを使用しない
- 多くのエージェントを作成してクリーンアップしないまま放置せず、使用後は必ずエージェントを削除
الأسئلة المتكررة
AIProjectClientとAgentsClientの違いは何ですか?
Azure AI Projectsへの認証方法は?
このSDKでOpenAI APIを直接使用できますか?
エージェントに追加できるツールは何ですか?
バージョン管理されたエージェントの作成方法は?
非同期操作はサポートされていますか?
تفاصيل المطور
المؤلف
sickn33الترخيص
MIT
المستودع
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-ai-projects-pyمرجع
main
بنية الملفات
📄 SKILL.md