Javaを使用して、接続、データセット、検索インデックス、モデル評価を含むAzure AI Foundryプロジェクトを管理します。
- GitHubスター
- 3,194
- ファイル
- 2
- 最終コミット
- 2026年11月11日
- ライセンス
- MIT
- 許可されたツール
- —
azure-ai-projects-java skillは何をしますか
azure-ai-projects-javaはAgent Skillsです。 Javaを使用して、接続、データセット、検索インデックス、モデル評価を含むAzure AI Foundryプロジェクトを管理します。.
skillのSKILL.mdから生成された要約。
azure-ai-projects-java skill について
このSKILLは、AI駆動型アプリケーションを構築する開発者が、Javaコードを通じてAzure AI Foundryプロジェクトを管理することを可能にします。接続、データセット、検索インデックス、モデル評価など、さまざまなプロジェクトコンポーネントを扱うためのハイレベルなSDKを提供します。エージェントがAzure AIリソースとプログラムでやり取りしたり、AIインフラストラクチャのライフサイクルを自動化したりする必要がある場合に、このSKILLをロードしてください。
ツールセットには、リソースを列挙するためのConnectionsClient、ドキュメントのアップロードを行うDatasetsClient、検索インデックスを管理するIndexesClientなどの専用クライアントが含まれています。また、モデル評価を実行するためのEvaluationsClientや、設定を管理するためのEvaluatorsClientへのアクセスも提供します。ユーザーは環境変数PROJECT_ENDPOINTを提供する必要があり、認証にはDefaultAzureCredentialを使用できます。SDKは、リソース一覧用のPagedIterableやインデックス管理用の特定のモデルなどの構造化されたオブジェクトを生成するため、AIプロジェクト環境を精密に制御できます。
エージェントができること
- 1モデル評価の実行統合されたOpenAI評価サービスを使用して、AIモデルの評価を実行します。
- 2データセットのアップロード管理AIのトレーニングや検索タスクのために、ドキュメントのアップロードやデータセットの管理を行います。
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
azure-ai-projects-java skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。Claude Codeにazure-ai-projects-java skillをインストールする
~/.claude/skills/azure-ai-projects-java/SKILL.md
$ npx degit microsoft/skills/.github/plugins/azure-sdk-java/skills/azure-ai-projects-java ~/.claude/skills/azure-ai-projects-javaClaude Code (project)にazure-ai-projects-java skillをインストールする
.claude/skills/azure-ai-projects-java/SKILL.md
$ npx degit microsoft/skills/.github/plugins/azure-sdk-java/skills/azure-ai-projects-java .claude/skills/azure-ai-projects-javaCodexにazure-ai-projects-java skillをインストールする
~/.agents/skills/azure-ai-projects-java/SKILL.md
$ npx degit microsoft/skills/.github/plugins/azure-sdk-java/skills/azure-ai-projects-java ~/.agents/skills/azure-ai-projects-javaGemini CLIにazure-ai-projects-java skillをインストールする
~/.gemini/skills/azure-ai-projects-java/SKILL.md
$ npx degit microsoft/skills/.github/plugins/azure-sdk-java/skills/azure-ai-projects-java ~/.gemini/skills/azure-ai-projects-javaClaude.aiにazure-ai-projects-java skillをインストールする
npx degit microsoft/skills/.github/plugins/azure-sdk-java/skills/azure-ai-projects-java azure-ai-projects-java && zip -r azure-ai-projects-java.zip azure-ai-projects-java # claude.ai → Customize → Skills → + → Create skill → Upload a skill → azure-ai-projects-java.zip
自動チェック
実行日 2026年11月15日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。エージェントに実行させる前にスクリプトを読んでください。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能microsoft/skills/.github/plugins/azure-sdk-java/skills/azure-ai-projects-java is public and reachablegithub.com/microsoft/skills/tree/HEAD/.github/plugins/azure- ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit 2026-11-11github.com/microsoft/skills/commits ↗合格
- スクリプトにダウンロード実行や認証情報の窃取がないNo scripts in the skill folder合格
- SKILL.md に隠れた指示がないNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/microsoft/skills/blob/HEAD/.github/plugins/azure- ↗合格
- 事前許可ツールが限定されているNo pre-approved tools; the agent asks before using onegithub.com/microsoft/skills/blob/HEAD/.github/plugins/azure- ↗合格
- SKILL.md が Agent Skills の形式に従っているthe description does not say when to use the skillgithub.com/microsoft/skills/blob/HEAD/.github/plugins/azure- ↗検出事項
SKILL.md
GitHubで表示Azure AI Projects SDK for Java
High-level SDK for Azure AI Foundry project management with access to connections, datasets, indexes, and evaluations.
Installation
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-ai-projects</artifactId>
<version>1.0.0-beta.1</version>
</dependency>
Environment Variables
PROJECT_ENDPOINT=https://<resource>.services.ai.azure.com/api/projects/<project> # Required for project configuration
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production
Authentication
import com.azure.ai.projects.AIProjectClientBuilder;
import com.azure.core.credential.TokenCredential;
import com.azure.identity.AzureIdentityEnvVars;
import com.azure.identity.DefaultAzureCredentialBuilder;
import com.azure.identity.ManagedIdentityCredentialBuilder;
TokenCredential credential = new DefaultAzureCredentialBuilder()
.requireEnvVars(AzureIdentityEnvVars.AZURE_TOKEN_CREDENTIALS)
.build();
// Or use a specific credential directly in production:
// See https://learn.microsoft.com/java/api/overview/azure/identity-readme?view=azure-java-stable#credential-classes
// TokenCredential credential = new ManagedIdentityCredentialBuilder().build();
AIProjectClientBuilder builder = new AIProjectClientBuilder()
.endpoint(System.getenv("PROJECT_ENDPOINT"))
.credential(credential);
Client Hierarchy
The SDK provides multiple sub-clients for different operations:
| Client | Purpose |
|---|---|
ConnectionsClient |
Enumerate connected Azure resources |
DatasetsClient |
Upload documents and manage datasets |
DeploymentsClient |
Enumerate AI model deployments |
IndexesClient |
Create and manage search indexes |
EvaluationsClient |
Run AI model evaluations |
EvaluatorsClient |
Manage evaluator configurations |
SchedulesClient |
Manage scheduled operations |
// Build sub-clients from builder
ConnectionsClient connectionsClient = builder.buildConnectionsClient();
DatasetsClient datasetsClient = builder.buildDatasetsClient();
DeploymentsClient deploymentsClient = builder.buildDeploymentsClient();
IndexesClient indexesClient = builder.buildIndexesClient();
EvaluationsClient evaluationsClient = builder.buildEvaluationsClient();
Core Operations
List Connections
import com.azure.ai.projects.models.Connection;
import com.azure.core.http.rest.PagedIterable;
PagedIterable<Connection> connections = connectionsClient.listConnections();
for (Connection connection : connections) {
System.out.println("Name: " + connection.getName());
System.out.println("Type: " + connection.getType());
System.out.println("Credential Type: " + connection.getCredentials().getType());
}
List Indexes
indexesClient.listLatest().forEach(index -> {
System.out.println("Index name: " + index.getName());
System.out.println("Version: " + index.getVersion());
System.out.println("Description: " + index.getDescription());
});
Create or Update Index
import com.azure.ai.projects.models.AzureAISearchIndex;
import com.azure.ai.projects.models.Index;
String indexName = "my-index";
String indexVersion = "1.0";
String searchConnectionName = System.getenv("AI_SEARCH_CONNECTION_NAME");
String searchIndexName = System.getenv("AI_SEARCH_INDEX_NAME");
Index index = indexesClient.createOrUpdate(
indexName,
indexVersion,
new AzureAISearchIndex()
.setConnectionName(searchConnectionName)
.setIndexName(searchIndexName)
);
System.out.println("Created index: " + index.getName());
Access OpenAI Evaluations
The SDK exposes OpenAI's official SDK for evaluations:
import com.openai.services.EvalService;
EvalService evalService = evaluationsClient.getOpenAIClient();
// Use OpenAI evaluation APIs directly
Best Practices
- Use DefaultAzureCredential for production authentication
- Reuse client builder to create multiple sub-clients efficiently
- Handle pagination when listing resources with
PagedIterable - Use environment variables for connection names and configuration
- Check connection types before accessing credentials
Error Handling
import com.azure.core.exception.HttpResponseException;
import com.azure.core.exception.ResourceNotFoundException;
try {
Index index = indexesClient.get(indexName, version);
} catch (ResourceNotFoundException e) {
System.err.println("Index not found: " + indexName);
} catch (HttpResponseException e) {
System.err.println("Error: " + e.getResponse().getStatusCode());
}
Reference Links
このスキルのファイル
2azure-ai-projects-java skillに関する質問
Claude Codeにazure-ai-projects-java skillをインストールするには
npx degit microsoft/skills/.github/plugins/azure-sdk-java/skills/azure-ai-projects-java ~/.claude/skills/azure-ai-projects-javaを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
azure-ai-projects-java skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
Azure AI Projects Java SDKで何を管理できますか?
このSDKを使用すると、Azure AI Foundryプロジェクトの接続、データセット、検索インデックス、モデルのデプロイ、および評価を管理できます。
本番環境でSDKを使用して認証するにはどうすればよいですか?
本番環境での認証には、DefaultAzureCredentialを使用することをお勧めします。