Updating the azure-ai-agents package to the latest spec#47764
Merged
jpalvarezl merged 76 commits intomainfrom Feb 24, 2026
Merged
Updating the azure-ai-agents package to the latest spec#47764jpalvarezl merged 76 commits intomainfrom
azure-ai-agents package to the latest spec#47764jpalvarezl merged 76 commits intomainfrom
Conversation
be067c9 to
267a6c0
Compare
…sage for memoryStores
Contributor
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
dargilco
approved these changes
Jan 28, 2026
Contributor
There was a problem hiding this comment.
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
V1version - 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 |
sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClientBuilder.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…sClientBuilder.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
dargilco
approved these changes
Feb 23, 2026
trrwilson
approved these changes
Feb 23, 2026
samvaity
reviewed
Feb 23, 2026
sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/models/A2APreviewTool.java
Show resolved
Hide resolved
samvaity
reviewed
Feb 24, 2026
samvaity
approved these changes
Feb 24, 2026
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.
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
ListAgentsRequestOrderwith a more genericPageOrdertype for ordering paginated results in bothAgentsAsyncClientandAgentsClient, simplifying method signatures and imports. [1] [2]ImageGenToolSizeandComputerActionTypeinAgentsCustomizations.java, making the customization method a no-op and reducing maintenance overhead.Method Consolidation and Cleanup
listAgentsandlistAgentVersionsmethods that previously accepted the old order type, and replaced them with updated versions that usePageOrder. This streamlines the API and reduces confusion. [1] [2]listAgentsandlistAgentVersionsmethods to both clients, now accepting the updatedPageOrdertype and providing improved pagination and filtering capabilities.Configuration Cleanup
_tsp-location.yamlconfiguration by removing unnecessary directory and commit references, which helps keep the build configuration up to date.