Skip to content

.Net: Add thread retrieval interface to enforce thread retrieval requirement for stateless agents.#11289

Closed
westey-m wants to merge 13 commits into
microsoft:mainfrom
westey-m:common-agent-api-threadretrieval
Closed

.Net: Add thread retrieval interface to enforce thread retrieval requirement for stateless agents.#11289
westey-m wants to merge 13 commits into
microsoft:mainfrom
westey-m:common-agent-api-threadretrieval

Conversation

@westey-m

@westey-m westey-m commented Mar 31, 2025

Copy link
Copy Markdown
Contributor

Motivation and Context

We need to have a standard way to retrieve chat history from a thread for agents that require
chat history at invocation time. This also allows these agents to check that the thread is
compatible before processing.

Description

  • Add an interface to decorate compatible threads with.
  • Update ChatHistoryAgentThread to implement the new interface.
  • Update ChatCompletionAgent and OpenAIResponseAgent to use the new interface
  • Add additional integration tests for store=false OpenAIResponseAgent

Contribution Checklist

@westey-m westey-m requested a review from a team as a code owner March 31, 2025 16:37
@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Mar 31, 2025
@github-actions github-actions Bot changed the title Add thread retrieval interface to enforce thread retrieval requirement for stateless agents. .Net: Add thread retrieval interface to enforce thread retrieval requirement for stateless agents. Mar 31, 2025
Comment thread dotnet/src/Agents/Abstractions/IAgentThreadRetrievable.cs Outdated
Comment thread dotnet/src/Agents/Abstractions/Agent.cs
@westey-m

westey-m commented Apr 2, 2025

Copy link
Copy Markdown
Contributor Author

Parking this until after GA

@westey-m westey-m closed this Apr 2, 2025
@westey-m westey-m reopened this May 7, 2025
@moonbox3 moonbox3 added the kernel Issues or pull requests impacting the core kernel label Jul 17, 2025
Comment thread dotnet/src/Agents/Abstractions/IAgentThreadRetrievable.cs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants