Skip to content

Conversation

@westey-m
Copy link
Contributor

Motivation and Context

#775

Description

  • Renaming AgentThread to AgentSession to better describe what it represents.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation .NET workflows Related to Workflows in agent-framework labels Jan 26, 2026
@github-actions github-actions bot changed the title [BREAKING] Rename AgentThread to AgentSession .NET: [BREAKING] Rename AgentThread to AgentSession Jan 26, 2026
@westey-m westey-m marked this pull request as ready for review January 26, 2026 10:47
Copilot AI review requested due to automatic review settings January 26, 2026 10:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames the core conversation state abstraction in the .NET SDK from AgentThread to AgentSession across product code, tests, and samples to better reflect that it can hold broader conversational state (not just chat history).

Changes:

  • Renamed public APIs and implementations from AgentThread/*Thread* to AgentSession/*Session* across the SDK surface.
  • Updated hosting/session persistence abstractions (AgentSessionStore, in-memory/no-op stores) and related integration points (A2A, Azure Functions, Durable Task).
  • Updated unit/integration tests and samples/docs to use the new session terminology.

Reviewed changes

Copilot reviewed 221 out of 221 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
dotnet/src/Microsoft.Agents.AI/OpenTelemetryAgent.cs Rename run pipeline parameters from thread to session.
dotnet/src/Microsoft.Agents.AI/Memory/ChatHistoryMemoryProviderScope.cs Renames scope field from ThreadId to SessionId.
dotnet/src/Microsoft.Agents.AI/LoggingAgent.cs Updates agent run signatures to AgentSession; remarks updated (needs wording fix).
dotnet/src/Microsoft.Agents.AI/FunctionInvocationDelegatingAgent.cs Forwards session through delegating agent.
dotnet/src/Microsoft.Agents.AI/AgentJsonUtilities.cs Updates JSON-serializable state types to session equivalents.
dotnet/src/Microsoft.Agents.AI/AgentExtensions.cs Renames optional function invocation context from thread to session.
dotnet/src/Microsoft.Agents.AI.Workflows/WorkflowsJsonUtilities.cs Updates workflow agent state serialization to session type.
dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/AIAgentHostExecutor.cs Stores/restores agent session in workflow checkpointing instead of thread.
dotnet/src/Microsoft.Agents.AI.Purview/ScopedContentProcessor.cs Renames threadId parameter to sessionId for Purview correlation.
dotnet/src/Microsoft.Agents.AI.Purview/PurviewWrapper.cs Renames thread ID extraction and flow to session; still uses ConversationId mapping.
dotnet/src/Microsoft.Agents.AI.Purview/PurviewAgent.cs Updates agent wrapper APIs to session.
dotnet/src/Microsoft.Agents.AI.Purview/IScopedContentProcessor.cs Renames interface contract to session terminology.
dotnet/src/Microsoft.Agents.AI.Mem0/Mem0ProviderScope.cs Updates docs to session wording (property naming needs alignment).
dotnet/src/Microsoft.Agents.AI.Hosting/NoopAgentThreadStore.cs Removes thread store in favor of session store.
dotnet/src/Microsoft.Agents.AI.Hosting/NoopAgentSessionStore.cs Adds no-op session store implementation.
dotnet/src/Microsoft.Agents.AI.Hosting/Local/InMemoryAgentSessionStore.cs Replaces in-memory thread store with in-memory session store.
dotnet/src/Microsoft.Agents.AI.Hosting/HostedAgentBuilderExtensions.cs Renames builder APIs to WithInMemorySessionStore / WithSessionStore.
dotnet/src/Microsoft.Agents.AI.Hosting/AgentSessionStore.cs Renames abstract store contract from thread to session.
dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/README.md Updates Azure Functions docs to use session terminology.
dotnet/src/Microsoft.Agents.AI.Hosting.A2A/AIAgentExtensions.cs Renames A2A host integration from thread store to session store.
dotnet/src/Microsoft.Agents.AI.Hosting.A2A.AspNetCore/EndpointRouteBuilderExtensions.cs Updates DI/service lookup to AgentSessionStore.
dotnet/src/Microsoft.Agents.AI.DurableTask/EntityAgentWrapper.cs Updates wrapper signatures to accept session.
dotnet/src/Microsoft.Agents.AI.DurableTask/DurableAgentSession.cs Renames durable thread object to durable session object.
dotnet/src/Microsoft.Agents.AI.DurableTask/DurableAgentJsonUtilities.cs Updates JSON context to serialize DurableAgentSession.
dotnet/src/Microsoft.Agents.AI.DurableTask/DurableAgentContext.cs Renames CurrentThread to CurrentSession.
dotnet/src/Microsoft.Agents.AI.DurableTask/DurableAIAgentProxy.cs Updates proxy APIs and validation to durable sessions.
dotnet/src/Microsoft.Agents.AI.DurableTask/AgentEntity.cs Creates a new session for streaming agent execution.
dotnet/src/Microsoft.Agents.AI.CopilotStudio/CopilotStudioAgentThread.cs Removes Copilot Studio thread type.
dotnet/src/Microsoft.Agents.AI.CopilotStudio/CopilotStudioAgentSession.cs Adds Copilot Studio session type.
dotnet/src/Microsoft.Agents.AI.Abstractions/DelegatingAIAgent.cs Updates delegating base agent APIs to session.
dotnet/src/Microsoft.Agents.AI.Abstractions/ChatHistoryProvider.cs Updates docs to associate provider with a session.
dotnet/src/Microsoft.Agents.AI.Abstractions/AgentRunOptions.cs Updates XML docs to reference session-based Run APIs.
dotnet/src/Microsoft.Agents.AI.Abstractions/AgentResponseUpdate.cs Updates XML docs to reference session-based streaming APIs.
dotnet/src/Microsoft.Agents.AI.Abstractions/AgentResponse.cs Updates XML docs to reference session-based non-streaming APIs.
dotnet/src/Microsoft.Agents.AI.Abstractions/AgentAbstractionsJsonUtilities.cs Updates JSON context types to session-based states.
dotnet/src/Microsoft.Agents.AI.AGUI/AGUIChatClient.cs Updates comments to session terminology (execution-thread wording needs care in some places).
dotnet/src/Microsoft.Agents.AI.A2A/A2AJsonUtilities.cs Updates JSON context to session-based state type.
dotnet/src/Microsoft.Agents.AI.A2A/A2AAgentSession.cs Renames A2A thread object to session object and updates serialization.
dotnet/tests/OpenAIResponse.IntegrationTests/OpenAIResponseFixture.cs Updates fixture APIs to accept AgentSession.
dotnet/tests/OpenAIChatCompletion.IntegrationTests/OpenAIChatCompletionFixture.cs Updates fixture APIs to accept AgentSession.
dotnet/tests/OpenAIAssistant.IntegrationTests/OpenAIAssistantFixture.cs Updates fixture APIs to accept AgentSession.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/WorkflowHostSmokeTests.cs Updates workflow agent tests to use InMemoryAgentSession.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/SpecializedExecutorSmokeTests.cs Updates smoke tests and test types to session variants.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/SampleSmokeTest.cs Updates sample smoke test state variable from thread to session.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/Sample/13_Subworkflow_Checkpointing.cs Updates sample workflow entrypoint to accept/return session.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/Sample/12_HandOff_HostAsAgent.cs Updates sample to use session.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/Sample/11_Concurrent_HostAsAgent.cs Updates sample to use session.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/Sample/10_Sequential_HostAsAgent.cs Updates sample to use session.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/Sample/07_GroupChat_Workflow_HostAsAgent.cs Updates sample to use session.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/Sample/06_GroupChat_Workflow.cs Updates sample agent to implement session APIs.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/RepresentationTests.cs Updates test agent API surface to session.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/InProcessExecutionTests.cs Updates test agent + internal session class naming/docs.
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/AgentWorkflowBuilderTests.cs Updates builder tests and test agents to session APIs.
dotnet/tests/Microsoft.Agents.AI.UnitTests/TestAIAgent.cs Updates test helper delegates to session-based signatures.
dotnet/tests/Microsoft.Agents.AI.UnitTests/OpenTelemetryAgentTests.cs Updates tests to use session-based callbacks.
dotnet/tests/Microsoft.Agents.AI.UnitTests/LoggingAgentTests.cs Updates tests to use session-based callbacks.
dotnet/tests/Microsoft.Agents.AI.UnitTests/FunctionInvocationDelegatingAgentTests.cs Updates middleware callback signature to session.
dotnet/tests/Microsoft.Agents.AI.UnitTests/ChatClient/ChatClientAgent_DeserializeSessionTests.cs Renames and updates deserialize tests to session type.
dotnet/tests/Microsoft.Agents.AI.UnitTests/AgentExtensionsTests.cs Updates agent extension tests to session type.
dotnet/tests/Microsoft.Agents.AI.UnitTests/AIAgentBuilderTests.cs Updates generic middleware signature from thread to session.
dotnet/tests/Microsoft.Agents.AI.Hosting.AzureFunctions.UnitTests/TestAgent.cs Updates test agent and dummy session type.
dotnet/tests/Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests/SamplesValidation.cs Updates validation to reference session terminology.
dotnet/tests/Microsoft.Agents.AI.Hosting.A2A.UnitTests/AIAgentExtensionsTests.cs Updates A2A extension tests to session-based APIs.
dotnet/tests/Microsoft.Agents.AI.DurableTask.UnitTests/DurableAgentThreadTests.cs Removes durable thread serialization tests.
dotnet/tests/Microsoft.Agents.AI.DurableTask.UnitTests/DurableAgentSessionTests.cs Adds durable session serialization tests.
dotnet/tests/Microsoft.Agents.AI.DurableTask.IntegrationTests/TimeToLiveTests.cs Updates TTL tests to use session.
dotnet/tests/Microsoft.Agents.AI.DurableTask.IntegrationTests/ExternalClientTests.cs Updates external client tests to use session.
dotnet/tests/Microsoft.Agents.AI.DurableTask.IntegrationTests/AgentEntityTests.cs Updates entity tests to use session.
dotnet/tests/Microsoft.Agents.AI.Declarative.UnitTests/AggregatorPromptAgentFactoryTests.cs Updates test agent to session APIs.
dotnet/tests/Microsoft.Agents.AI.AzureAI.UnitTests/AzureAIProjectChatClientTests.cs Updates tests to use session and ChatClientAgentSession.
dotnet/tests/Microsoft.Agents.AI.Abstractions.UnitTests/TestJsonSerializerContext.cs Updates JSON context types to session state types.
dotnet/tests/Microsoft.Agents.AI.Abstractions.UnitTests/ServiceIdAgentThreadTests.cs Removes thread-based ServiceId agent tests.
dotnet/tests/Microsoft.Agents.AI.A2A.UnitTests/A2AAgentThreadTests.cs Removes A2A thread tests.
dotnet/tests/Microsoft.Agents.AI.A2A.UnitTests/A2AAgentSessionTests.cs Adds A2A session tests.
dotnet/tests/CopilotStudio.IntegrationTests/CopilotStudioRunTests.cs Updates skipped conformance test name to session.
dotnet/tests/CopilotStudio.IntegrationTests/CopilotStudioRunStreamingTests.cs Updates skipped conformance test name to session.
dotnet/tests/CopilotStudio.IntegrationTests/CopilotStudioFixture.cs Updates fixture API to session.
dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistentFixture.cs Updates fixture APIs to session.
dotnet/tests/AzureAI.IntegrationTests/AIProjectClientFixture.cs Updates fixture APIs to session.
dotnet/tests/AnthropicChatCompletion.IntegrationTests/AnthropicChatCompletionRunTests.cs Updates conformance override name to session.
dotnet/tests/AnthropicChatCompletion.IntegrationTests/AnthropicChatCompletionRunStreamingTests.cs Updates conformance override name to session.
dotnet/tests/AnthropicChatCompletion.IntegrationTests/AnthropicChatCompletionFixture.cs Updates fixture APIs to session.
dotnet/tests/AgentConformance.IntegrationTests/Support/SessionCleanup.cs Renames cleanup helper to delete sessions.
dotnet/tests/AgentConformance.IntegrationTests/IAgentFixture.cs Updates fixture contract to session APIs.
dotnet/tests/AgentConformance.IntegrationTests/ChatClientAgentRunTests.cs Updates conformance tests to create/use sessions.
dotnet/tests/AgentConformance.IntegrationTests/ChatClientAgentRunStreamingTests.cs Updates conformance tests to create/use sessions.
dotnet/samples/M365Agent/Agents/WeatherForecastAgent.cs Updates sample agent override signatures to session.
dotnet/samples/M365Agent/AFAgentApplication.cs Updates Bot Framework sample state handling to session serialization.
dotnet/samples/GettingStarted/Workflows/Observability/WorkflowAsAnAgent/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/Workflows/Declarative/HostedWorkflow/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/Workflows/Agents/WorkflowAsAnAgent/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/Workflows/Agents/CustomAgentExecutors/Program.cs Updates sample executor state from thread to session.
dotnet/samples/GettingStarted/ModelContextProtocol/ResponseAgent_Hosted_MCP/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/ModelContextProtocol/FoundryAgent_Hosted_MCP/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step15_ComputerUse/Program.cs Updates sample to create/use sessions and resume with session.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step13_Plugins/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step12_Middleware/Program.cs Updates sample middleware signatures and session usage.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step11_AsFunctionTool/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step10_UsingImages/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step08_DependencyInjection/Program.cs Updates sample service state from thread to session.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step07_Observability/Program.cs Updates sample to create/use sessions (streaming + non-streaming).
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step06_PersistedConversations/Program.cs Updates sample persistence to serialize/deserialize sessions.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step04_UsingFunctionToolsWithApprovals/Program.cs Updates sample to create/use sessions and continue with session.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step03_UsingFunctionTools/Program.cs Updates sample to create/use sessions (streaming + non-streaming).
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step02_MultiturnConversation/README.md Updates docs to use GetNewSessionAsync.
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step02_MultiturnConversation/Program.cs Updates sample to create/use sessions with Foundry conversations.
dotnet/samples/GettingStarted/Agents/Agent_Step20_AdditionalAIContext/Program.cs Updates sample to create/use sessions and persist state.
dotnet/samples/GettingStarted/Agents/Agent_Step18_DeepResearch/Program.cs Updates sample to create/use session for streaming.
dotnet/samples/GettingStarted/Agents/Agent_Step17_BackgroundResponses/Program.cs Updates sample to use session for continuation/resumption.
dotnet/samples/GettingStarted/Agents/Agent_Step16_ChatReduction/Program.cs Updates sample to use session (chat history access via services).
dotnet/samples/GettingStarted/Agents/Agent_Step13_BackgroundResponsesWithToolsAndPersistence/Program.cs Updates sample persistence helpers to use session.
dotnet/samples/GettingStarted/Agents/Agent_Step11_UsingImages/Program.cs Updates sample to create/use session for streaming.
dotnet/samples/GettingStarted/Agents/Agent_Step09_DependencyInjection/Program.cs Updates sample service state from thread to session.
dotnet/samples/GettingStarted/Agents/Agent_Step06_PersistedConversations/Program.cs Updates sample persistence to serialize/deserialize sessions.
dotnet/samples/GettingStarted/Agents/Agent_Step04_UsingFunctionToolsWithApprovals/Program.cs Updates sample to create/use session and continue with session.
dotnet/samples/GettingStarted/Agents/Agent_Step02_MultiturnConversation/Program.cs Updates sample to create/use session for multi-turn context.
dotnet/samples/GettingStarted/AgentWithRAG/AgentWithRAG_Step04_FoundryServiceRAG/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/AgentWithRAG/AgentWithRAG_Step03_CustomRAGDataSource/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/AgentWithRAG/AgentWithRAG_Step02_CustomVectorStoreRAG/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/AgentWithRAG/AgentWithRAG_Step01_BasicTextRAG/TextSearchStore/TextSearchStore.cs Updates comments (needs thread-vs-session wording correction for locking).
dotnet/samples/GettingStarted/AgentWithRAG/AgentWithRAG_Step01_BasicTextRAG/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/AgentWithOpenAI/README.md Updates docs to refer to AgentSession.
dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step05_Conversation/README.md Updates docs and code snippets to AgentSession.
dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step05_Conversation/Program.cs Updates sample to create/use session for multi-turn conversation.
dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/OpenAIResponseClientAgent.cs Updates sample wrapper methods to accept session.
dotnet/samples/GettingStarted/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/OpenAIChatClientAgent.cs Updates sample wrapper methods to accept session.
dotnet/samples/GettingStarted/AgentWithMemory/AgentWithMemory_Step02_MemoryUsingMem0/Program.cs Updates sample to use session terminology and serialize/deserialize session.
dotnet/samples/GettingStarted/AgentWithMemory/AgentWithMemory_Step01_ChatHistoryMemory/Program.cs Updates sample to use sessions (contains a new-guid bug + typo).
dotnet/samples/GettingStarted/AgentWithAnthropic/Agent_Anthropic_Step03_UsingFunctionTools/Program.cs Updates sample to create/use sessions.
dotnet/samples/GettingStarted/AgentProviders/Agent_With_OpenAIAssistants/Program.cs Updates sample to create/use session.
dotnet/samples/GettingStarted/AgentProviders/Agent_With_AzureAIProject/Program.cs Updates sample to create/use session.
dotnet/samples/GettingStarted/AgentProviders/Agent_With_AzureAIAgentsPersistent/Program.cs Updates sample to create/use session.
dotnet/samples/GettingStarted/AgentOpenTelemetry/Program.cs Updates sample to create/use session for streaming.
dotnet/samples/GettingStarted/AGUI/Step05_StateManagement/Server/SharedStateAgent.cs Updates wrapper to flow session.
dotnet/samples/GettingStarted/AGUI/Step05_StateManagement/Client/StatefulAgent.cs Updates wrapper to flow session.
dotnet/samples/GettingStarted/AGUI/Step05_StateManagement/Client/Program.cs Updates sample to create/use session and print run session id.
dotnet/samples/GettingStarted/AGUI/Step04_HumanInLoop/Server/ServerFunctionApprovalServerAgent.cs Updates wrapper to flow session.
dotnet/samples/GettingStarted/AGUI/Step04_HumanInLoop/Client/ServerFunctionApprovalClientAgent.cs Updates wrapper to flow session.
dotnet/samples/GettingStarted/AGUI/Step04_HumanInLoop/Client/Program.cs Updates client sample to track session rather than thread.
dotnet/samples/GettingStarted/AGUI/Step03_FrontendTools/Client/Program.cs Updates sample to create/use session and print run session id.
dotnet/samples/GettingStarted/AGUI/Step02_BackendTools/Client/Program.cs Updates sample to create/use session and print run session id.
dotnet/samples/GettingStarted/AGUI/Step01_GettingStarted/Client/Program.cs Updates sample to create/use session and print run session id.
dotnet/samples/GettingStarted/A2A/A2AAgent_PollingForTaskCompletion/Program.cs Updates sample to create/use session for continuation polling.
dotnet/samples/DurableAgents/ConsoleApps/07_ReliableStreaming/RedisStreamResponseHandler.cs Updates durable sample to use CurrentSession.
dotnet/samples/DurableAgents/ConsoleApps/07_ReliableStreaming/Program.cs Updates durable sample to create/use session.
dotnet/samples/DurableAgents/ConsoleApps/06_LongRunningTools/Program.cs Updates durable sample orchestration to use sessions.
dotnet/samples/DurableAgents/ConsoleApps/05_AgentOrchestration_HITL/Program.cs Updates durable sample orchestration to use sessions.
dotnet/samples/DurableAgents/ConsoleApps/04_AgentOrchestration_Conditionals/Program.cs Updates durable sample orchestration to use sessions.
dotnet/samples/DurableAgents/ConsoleApps/02_AgentOrchestration_Chaining/README.md Updates docs to AgentSession.
dotnet/samples/DurableAgents/ConsoleApps/02_AgentOrchestration_Chaining/Program.cs Updates orchestration sample to use sessions.
dotnet/samples/DurableAgents/ConsoleApps/01_SingleAgent/Program.cs Updates single-agent durable sample to use sessions.
dotnet/samples/AzureFunctions/08_ReliableStreaming/RedisStreamResponseHandler.cs Updates Azure Functions sample to use CurrentSession.
dotnet/samples/AzureFunctions/08_ReliableStreaming/FunctionTriggers.cs Updates sample trigger to create/use session.
dotnet/samples/AzureFunctions/06_LongRunningTools/Tools.cs Updates comment to session terminology.
dotnet/samples/AzureFunctions/06_LongRunningTools/FunctionTriggers.cs Updates orchestration sample to use sessions.
dotnet/samples/AzureFunctions/05_AgentOrchestration_HITL/FunctionTriggers.cs Updates orchestration sample to use sessions.
dotnet/samples/AzureFunctions/04_AgentOrchestration_Conditionals/FunctionTriggers.cs Updates orchestration sample to use sessions.
dotnet/samples/AzureFunctions/02_AgentOrchestration_Chaining/README.md Updates docs to AgentSession.
dotnet/samples/AzureFunctions/02_AgentOrchestration_Chaining/Program.cs Updates sample comments to session terminology.
dotnet/samples/AzureFunctions/02_AgentOrchestration_Chaining/FunctionTriggers.cs Updates orchestration sample to use sessions.
dotnet/samples/AgentWebChat/AgentWebChat.Web/OpenAIResponsesAgentClient.cs Renames threadId parameter to sessionId and maps to ConversationId.
dotnet/samples/AgentWebChat/AgentWebChat.Web/OpenAIChatCompletionsAgentClient.cs Renames threadId parameter to sessionId.
dotnet/samples/AgentWebChat/AgentWebChat.Web/IAgentClient.cs Renames threadId parameter to sessionId; adds AgentClientSession wrapper (naming needs alignment).
dotnet/samples/AgentWebChat/AgentWebChat.Web/A2AAgentClient.cs Renames threadId parameter to sessionId, still maps to A2A context id.
dotnet/samples/AgentWebChat/AgentWebChat.AgentHost/Program.cs Updates host builder to use in-memory session store.
dotnet/samples/AGUIClientServer/AGUIDojoServer/SharedState/SharedStateAgent.cs Updates wrapper to flow session through.
dotnet/samples/AGUIClientServer/AGUIDojoServer/PredictiveStateUpdates/PredictiveStateUpdatesAgent.cs Updates wrapper to flow session through.
dotnet/samples/AGUIClientServer/AGUIDojoServer/AgenticUI/AgenticUIAgent.cs Updates wrapper to flow session through.
dotnet/samples/AGUIClientServer/AGUIClient/Program.cs Updates sample to create/use session and print run session id.
dotnet/samples/A2AClientServer/A2AClient/Program.cs Updates sample to create/use session.
Comments suppressed due to low confidence (2)

dotnet/src/Microsoft.Agents.AI.DurableTask/DurableAgentSession.cs:40

  • serializedSession parameter documentation says "serialized thread data". Please update to "serialized session data" to match the rename and avoid confusion.
    dotnet/src/Microsoft.Agents.AI.DurableTask/DurableAgentSession.cs:11
  • The class summary still says "An agent thread implementation" even though the type is now DurableAgentSession. Update the summary to say "session" for correctness and discoverability.

Copy link
Contributor Author

@westey-m westey-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replied to review comments

@westey-m westey-m added this pull request to the merge queue Jan 26, 2026
github-merge-queue bot pushed a commit that referenced this pull request Jan 26, 2026
* Rename AgentThread to AgentSession

* Add more renames

* Update readme files

* Revert nullable variable change and further fixes.

* Revert change in header name

* Fix some comments and tests

* Update changelog.

* Address PR feedback.

* Fixing code review comments.

* Fix new errors after merging latest code.
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 26, 2026
@westey-m westey-m added this pull request to the merge queue Jan 26, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 26, 2026
@westey-m westey-m added this pull request to the merge queue Jan 26, 2026
Merged via the queue into microsoft:main with commit a3a9147 Jan 26, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET workflows Related to Workflows in agent-framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants