Generating azure-ai-projects from latest spec#47875
Merged
jpalvarezl merged 38 commits intomainfrom Feb 23, 2026
Merged
Conversation
Contributor
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
azure-ai-projects from latest spec
…ial models - Rename BaseCredentials -> BaseCredential - Rename ApiKeyCredentials -> ApiKeyCredential - Rename EntraIdCredentials -> EntraIdCredential - Rename SasCredentials -> SasCredential - Rename NoAuthenticationCredentials -> NoAuthenticationCredential - Rename AgenticIdentityPreviewCredentials -> AgenticIdentityPreviewCredential - Update tsp-location.yaml commit to 2d01b1ba98da58699e4c080e45451574f375af86
…202 - rename ConnectionType.APIKEY to API_KEY
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request regenerates the azure-ai-projects SDK from the latest v2 TypeSpec specification. The changes include significant API updates, method renames for consistency, and new functionality to expose OpenAI and Agents clients.
Changes:
- Updated service API version from
2025-11-15-previewtov1 - Renamed multiple API methods for consistency (e.g.,
createOrUpdate→createOrUpdateVersion,list→listDeployments) - Added
buildOpenAIClientandbuildOpenAIAsyncClientmethods to the builder - Refactored class names for consistency (e.g.,
BaseCredentials→BaseCredential) - Updated data types (timestamps from
String/longtoOffsetDateTime, schema fields fromBinaryDatatoMap<String, BinaryData>)
Reviewed changes
Copilot reviewed 104 out of 104 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tsp-location.yaml | Updated spec commit hash to latest version |
| AIProjectsServiceVersion.java | Changed service version from V2025_11_15_PREVIEW to V1 |
| TestUtils.java | Updated to use new service version constant |
| Multiple Client files | Renamed methods for consistency (get → getDeployment, list → listDeployments, etc.) |
| Multiple Model files | Type changes (String → OffsetDateTime), constructor relocations, schema updates |
| AIProjectClientBuilder.java | Added buildOpenAIClient methods, simplified base URL construction |
| TokenUtils.java | Refactored to use TokenCredential directly instead of HttpPipeline |
| README.md | Added documentation for Agents clients and OpenAI client usage |
| pom.xml | Added azure-ai-agents dependency |
| module-info.java | Made openai dependencies transitive, added agents dependency |
dargilco
approved these changes
Feb 23, 2026
jeet1995
pushed a commit
to jeet1995/azure-sdk-for-java
that referenced
this pull request
Feb 23, 2026
* Generating from latest spec * CHANGELOG.md * Added methods from builder exposing the OpenAIClient * Subclient documentation * Restored Agents samples * Schedule parameter rename and latest spec * Latest commit codegen * Latest commit codegen * README update * Spec up to date * fixed pom.xml * Using current version * Adjusted the name of the env vars * Made stainless deps transitive * Latest working codegen * EvaluationClient naming feedback * Method renames * Token fix and test/sample renames applied * Uri -> URL renames * pom fix * pom fix * Adjusted other method calls * Renames applied to tests and samples * using actually released version of azure-ai-agents * Making the CI happy * Code gen latest * string -> utcDateTime to get Offset in Java * codegen: singularize Credentials -> Credential for connection credential models - Rename BaseCredentials -> BaseCredential - Rename ApiKeyCredentials -> ApiKeyCredential - Rename EntraIdCredentials -> EntraIdCredential - Rename SasCredentials -> SasCredential - Rename NoAuthenticationCredentials -> NoAuthenticationCredential - Rename AgenticIdentityPreviewCredentials -> AgenticIdentityPreviewCredential - Update tsp-location.yaml commit to 2d01b1ba98da58699e4c080e45451574f375af86 * Regenerate from TypeSpec commit 1f9e30204b790f289ac387a3d8b3cf83b0b28202 - rename ConnectionType.APIKEY to API_KEY * regenrating with latest upstream changes * Using expandable enums * Re-ran codegen * CHANGELOG/README updates * Updating readme version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generating from latest v2 spec found here
In addition to consuming the latest updates to the v2 spec this PR introduces:
getOpenAIClientmethods from the default builder to obtain an instance of the Stainless client (TODO: this getter makes more sense in theazure-ai-agentspackage as the baseURL accounts for OpenAI endpoints already.READMEexplaining how to build anAgentsClient