-
Notifications
You must be signed in to change notification settings - Fork 1k
.NET: Update Conversation Sample to use Conversation Id instead #3180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
.NET: Update Conversation Sample to use Conversation Id instead #3180
Conversation
There was a problem hiding this 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 PR updates the multiturn conversation sample to demonstrate using conversation IDs with the Azure Foundry Agents framework. The changes enable conversations to be visible in the Azure Foundry Project UI while maintaining backward compatibility with the previous PreviousResponseId-based approach.
Changes:
- Added ProjectConversationsClient integration to create and manage conversations
- Updated thread creation to accept conversation IDs for UI visibility
- Enhanced documentation to explain the difference between conversation ID and PreviousResponseId approaches
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step02_MultiturnConversation/README.md | Updated documentation to describe conversation ID usage, added explanation of conversation ID vs PreviousResponseId, and updated step descriptions |
| dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step02_MultiturnConversation/Program.cs | Added conversation creation/deletion, updated thread creation to use conversation IDs, changed agent type from AIAgent to ChatClientAgent |
Motivation and Context