Skip to content

.NET: Update Conversation Sample to use Conversation Id instead - #3180

Merged
Roger Barreto (rogerbarreto) merged 5 commits into
microsoft:mainfrom
rogerbarreto:issues/2935-add-foudry-agents-conversation-id-sample
Jan 21, 2026
Merged

.NET: Update Conversation Sample to use Conversation Id instead#3180
Roger Barreto (rogerbarreto) merged 5 commits into
microsoft:mainfrom
rogerbarreto:issues/2935-add-foudry-agents-conversation-id-sample

Conversation

CopilotAI review requested due to automatic review settings January 12, 2026 17:37
@markwallace-microsoftMark Wallace (markwallace-microsoft) added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net labels Jan 12, 2026

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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.

FileDescription
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step02_MultiturnConversation/README.mdUpdated 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.csAdded conversation creation/deletion, updated thread creation to use conversation IDs, changed agent type from AIAgent to ChatClientAgent

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationUsage: [Issues, PRs], Target: documentation in the code base and learn docs.NETUsage: [Issues, PRs], Target: .Net

Projects

None yet

4 participants

@rogerbarreto@SergeyMenshykh@markwallace-microsoft