Removing Conversation(Async)Client , rename listConversations -> listAgentConversations and adjusted samples#48428
Merged
kaylieee merged 3 commits intokaylieee/feature/add-list-conversationfrom Mar 17, 2026
Conversation
kaylieee
approved these changes
Mar 17, 2026
466566e
into
kaylieee/feature/add-list-conversation
7 of 8 checks passed
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 adds new APIs for listing conversations associated with agents, improves documentation, and updates code structure and linting suppressions. The main focus is to provide convenient methods for retrieving conversations directly from the main
AgentsClientandAgentsAsyncClientclasses, consolidating functionality and simplifying usage.Key changes include:
New Conversation Listing APIs
AgentsClientandAgentsAsyncClientfor listing agent conversations, supporting filtering, pagination, and returning strongly-typedConversationobjects. These methods allow users to retrieve all conversations or filter them by agent name, agent ID, order, and pagination parameters. (sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClient.java,sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsAsyncClient.java) [1] [2]Dependency and Import Adjustments
Conversationmodel in both client classes to support the new APIs. (sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClient.java,sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsAsyncClient.java) [1] [2]Documentation Updates
README.mdto reflect the new, simplified way to create conversations and add messages, removing references to the now-removedConversationsClientand streamlining usage examples. (sdk/ai/azure-ai-agents/README.md)Codebase Simplification
ConversationsClientandConversationsAsyncClientfrom theAgentsClientBuilderand associated build methods, consolidating conversation management into the main agent clients. (sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClientBuilder.java) [1] [2]Linting and Suppression Updates
sdk/ai/azure-ai-agents/checkstyle-suppressions.xml)