Azure AI Projects SDK for Java
使用 Java SDK 管理 Azure AI 项目
开发者需要将 Azure AI Foundry 服务集成到 Java 应用程序中。本技能提供项目管理、连接、数据集和 AI 模型评估的全面指导。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“Azure AI Projects SDK for Java”。 List all Azure AI connections in the project
预期结果:
Java code using ConnectionsClient.listConnections() that iterates through PagedIterable and prints each connection name, type, and credential type.
正在使用“Azure AI Projects SDK for Java”。 Create a new search index
预期结果:
Complete Java example showing AzureAISearchIndex creation with connection name and index name configuration, including error handling.
正在使用“Azure AI Projects SDK for Java”。 Handle index not found error
预期结果:
Try-catch block demonstrating ResourceNotFoundException and HttpResponseException handling with appropriate error messages.
安全审计
安全This skill contains documentation-only content for the Azure AI Projects Java SDK. No executable code was scanned. The skill provides usage examples for Azure AI Foundry project management including authentication, client operations, and best practices. Environment variable usage for PROJECT_ENDPOINT is standard practice for Azure SDK configuration.
风险因素
🔑 环境变量 (2)
质量评分
你能构建什么
企业 AI 集成
将 Azure AI Foundry 服务集成到现有的 Java 企业应用程序中,以实现统一的 AI 功能。
AI 项目自动化
通过 Java 代码自动执行 Azure AI 项目设置、配置和资源管理。
AI 模型评估流水线
使用 OpenAI 评估服务构建 AI 模型的自动化评估流水线。
试试这些提示
Show me how to set up Azure AI Projects SDK authentication in Java using environment variables.
Write Java code to list all Azure AI connections and display their names and types.
Help me create an Azure AI Search index with a specific connection name and index version.
Show me how to access OpenAI evaluation services through Azure AI Projects SDK and run a model evaluation.
最佳实践
- 生产环境身份验证请使用 DefaultAzureCredential,而非硬编码凭据
- 复用 AIProjectClientBuilder 以高效创建多个子客户端
- 为安全起见,将项目端点和连接名称存储在环境变量中
避免
- 在源代码中直接硬编码凭据或端点
- 为每个操作创建新的客户端构建器,而非复用
- 列出大量资源集合时忽略分页