Skip to content

Generating azure-ai-projects from latest spec#47875

Merged
jpalvarezl merged 38 commits intomainfrom
jpalvarezl/feature/projects_subclient_refresh
Feb 23, 2026
Merged

Generating azure-ai-projects from latest spec#47875
jpalvarezl merged 38 commits intomainfrom
jpalvarezl/feature/projects_subclient_refresh

Conversation

@jpalvarezl
Copy link
Member

@jpalvarezl jpalvarezl commented Feb 2, 2026

Generating from latest v2 spec found here

In addition to consuming the latest updates to the v2 spec this PR introduces:

  • getOpenAIClient methods from the default builder to obtain an instance of the Stainless client (TODO: this getter makes more sense in the azure-ai-agents package as the baseURL accounts for OpenAI endpoints already.
  • Added section to the README explaining how to build an AgentsClient

@github-actions github-actions bot added the AI label Feb 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

API Change Check

APIView identified API level changes in this PR and created the following API reviews

com.azure:azure-ai-projects

@jpalvarezl jpalvarezl changed the title Generating from latest spec Generating azure-ai-projects from latest spec Feb 3, 2026
…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
@jpalvarezl jpalvarezl marked this pull request as ready for review February 20, 2026 09:36
@jpalvarezl jpalvarezl requested review from a team, dargilco and trrwilson as code owners February 20, 2026 09:36
Copilot AI review requested due to automatic review settings February 20, 2026 09:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-preview to v1
  • Renamed multiple API methods for consistency (e.g., createOrUpdatecreateOrUpdateVersion, listlistDeployments)
  • Added buildOpenAIClient and buildOpenAIAsyncClient methods to the builder
  • Refactored class names for consistency (e.g., BaseCredentialsBaseCredential)
  • Updated data types (timestamps from String/long to OffsetDateTime, schema fields from BinaryData to Map<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

@jpalvarezl jpalvarezl merged commit 0fe8fea into main Feb 23, 2026
19 checks passed
@jpalvarezl jpalvarezl deleted the jpalvarezl/feature/projects_subclient_refresh branch February 23, 2026 14:57
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants