Skip to content

Comments

Updating the azure-ai-agents package to the latest spec#47764

Merged
jpalvarezl merged 76 commits intomainfrom
jpalvarezl/feature/update-agents
Feb 24, 2026
Merged

Updating the azure-ai-agents package to the latest spec#47764
jpalvarezl merged 76 commits intomainfrom
jpalvarezl/feature/update-agents

Conversation

@jpalvarezl
Copy link
Member

@jpalvarezl jpalvarezl commented Jan 21, 2026

  • Emitting from the latest spec for AI-Foundry
  • Pending resolution of this PR for name customizations

This pull request refactors and simplifies the Azure AI Agents Java SDK by removing custom enum renaming logic, updating request order types, and consolidating pagination methods for listing agents and agent versions. The changes also include some cleanup of configuration files and method signatures.

Key changes include:

API and Model Refactoring

  • Replaced the use of ListAgentsRequestOrder with a more generic PageOrder type for ordering paginated results in both AgentsAsyncClient and AgentsClient, simplifying method signatures and imports. [1] [2]
  • Removed the custom enum renaming logic for ImageGenToolSize and ComputerActionType in AgentsCustomizations.java, making the customization method a no-op and reducing maintenance overhead.

Method Consolidation and Cleanup

  • Removed duplicate and redundant listAgents and listAgentVersions methods that previously accepted the old order type, and replaced them with updated versions that use PageOrder. This streamlines the API and reduces confusion. [1] [2]
  • Added new listAgents and listAgentVersions methods to both clients, now accepting the updated PageOrder type and providing improved pagination and filtering capabilities.

Configuration Cleanup

  • Cleaned up the _tsp-location.yaml configuration by removing unnecessary directory and commit references, which helps keep the build configuration up to date.

@github-actions github-actions bot added the AI label Jan 21, 2026
@jpalvarezl jpalvarezl force-pushed the jpalvarezl/feature/update-agents branch from be067c9 to 267a6c0 Compare January 23, 2026 14:48
@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2026

API Change Check

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

com.azure:azure-ai-agents

@jpalvarezl jpalvarezl marked this pull request as ready for review February 23, 2026 13:47
Copilot AI review requested due to automatic review settings February 23, 2026 13:47
@jpalvarezl jpalvarezl requested a review from a team as a code owner February 23, 2026 13:47
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 updates the azure-ai-agents package to align with the latest Azure AI Foundry API specification. The changes include significant model refactoring, service version simplification, and integration improvements with the OpenAI Java SDK.

Changes:

  • Simplified service versioning from date-based versions to a single V1 version
  • Renamed and restructured numerous model classes to align with the latest API spec
  • Updated base URL construction and authentication flow
  • Added new preview tools and enhanced model support for agent operations

Reviewed changes

Copilot reviewed 150 out of 283 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
AgentsServiceVersion.java Replaced multiple date-based service versions with a single V1 version
AgentsClientBuilder.java Updated base URL construction to directly use /openai/v1 endpoint
TokenUtils.java Refactored token retrieval to use TokenRequestContext directly instead of HttpPipeline
OpenAIJsonHelper.java Added helper methods for converting between OpenAI and Azure SDK types
ResponsesClient.java / ResponsesAsyncClient.java Renamed internal client fields and added new createWithAgent methods
ConversationsClient.java / ConversationsAsyncClient.java Renamed internal client fields for consistency
Various model files Renamed and restructured models to align with latest spec (e.g., ImageGenToolSize, ComputerActionType, etc.)
pom.xml Updated dependencies and added Maven repository configuration
CHANGELOG.md Documented breaking changes and new features
README.md Updated documentation to reflect V1 API and new features

jpalvarezl and others added 4 commits February 23, 2026 14:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…sClientBuilder.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jpalvarezl jpalvarezl enabled auto-merge (squash) February 23, 2026 15:12
@jpalvarezl jpalvarezl merged commit 91c4ed9 into main Feb 24, 2026
19 checks passed
@jpalvarezl jpalvarezl deleted the jpalvarezl/feature/update-agents branch February 24, 2026 19:34
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.

5 participants