Updating the azure-ai-agents package to the latest spec
#47764
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.