المهارات azure-ai-projects-py
📦

azure-ai-projects-py

آمن

Build Azure AI Apps with Foundry SDK

Microsoft FoundryでAzure AI Projects Python SDKを使用してAIアプリケーションを構築します。このスキルでは、エージェントの作成、スレッドの管理、ツール構成、評価の実行に関する包括的なドキュメントを提供します。

يدعم: Claude Codex Code(CC)
🥉 75 برونزي
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "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.

التدقيق الأمني

آمن
v1 • 2/24/2026

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.

1
الملفات التي تم فحصها
301
الأسطر التي تم تحليلها
0
النتائج
1
إجمالي عمليات التدقيق
لا توجد مشكلات أمنية
تم تدقيقه بواسطة: claude

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
87
المحتوى
50
المجتمع
100
الأمان
100
الامتثال للمواصفات

ماذا يمكنك بناءه

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の違いは何ですか?
AIProjectClientは接続、デプロイメント、データセット、バージョン管理を含む完全なFoundry統合のための高レベルクライアントです。AgentsClientはFoundry機能を持たないスタンドアロンエージェントアプリケーション用の低レベルクライアントです。
Azure AI Projectsへの認証方法は?
DefaultAzureCredentialを使用してください。これはAzure AD、マネージドID、環境変数を通じて自動的に認証を処理します。
このSDKでOpenAI APIを直接使用できますか?
はい、client.get_openai_client()を使用して標準のOpenAI API呼び出し用のOpenAI互換クライアントを取得できます。
エージェントに追加できるツールは何ですか?
CodeInterpreterTool、FileSearchTool、BingGroundingTool、AzureAISearchTool、FunctionTool、OpenApiTool、McpTool、MemorySearchTool、SharepointGroundingToolを追加できます。
バージョン管理されたエージェントの作成方法は?
安定したAPIを持つバージョン管理されたエージェントを作成するには、PromptAgentDefinitionでclient.agents.create_version()を使用します。
非同期操作はサポートされていますか?
はい、非同期操作用のazure.ai.projects.aioからAIProjectClientを使用し、async/awaitパターンで非同期処理を行えます。

تفاصيل المطور

بنية الملفات

📄 SKILL.md