Skip to content
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

.Net: Use ChatHistoryAgentThread with OpenAIResponseAgent #11499

Open
wants to merge 1 commit into
base: feature-openai-responses-agent
Choose a base branch
from

Conversation

markwallace-microsoft
Copy link
Member

Motivation and Context

Response to this suggestion:
Instead of having a StoreEnabled on the agentThread, consider supporting two thread types, e.g. ChatHistoryAgentThread and OpenAIResponseAgentThread.

Description

Contribution Checklist

@markwallace-microsoft markwallace-microsoft requested a review from a team as a code owner April 10, 2025 19:03
@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Apr 10, 2025
@github-actions github-actions bot changed the title Use ChatHistoryAgentThread with OpenAIResponseAgent .Net: Use ChatHistoryAgentThread with OpenAIResponseAgent Apr 10, 2025
@markwallace-microsoft markwallace-microsoft force-pushed the users/markwallace/response_agent_thread_update branch from 9685eff to 3c39c4e Compare April 10, 2025 19:14
}

/// <summary>
/// Initializes a new instance of the <see cref="OpenAIResponseAgentThread"/> class that resumes an existing response.
/// </summary>
/// <param name="client">The agents client to use for interacting with responses.</param>
/// <param name="id">The ID of an existing response to resume.</param>
/// <param name="enableStore">Enable storing messages on the server.</param>
public OpenAIResponseAgentThread(OpenAIResponseClient client, string id, bool enableStore = false)
public OpenAIResponseAgentThread(OpenAIResponseClient client, string id)
Copy link
Member

@RogerBarreto RogerBarreto Apr 11, 2025

Choose a reason for hiding this comment

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

nit.
Is this experimental? Can we change this? suggest using responseId here, not clear what id this is referring to.

Suggested change
public OpenAIResponseAgentThread(OpenAIResponseClient client, string id)
public OpenAIResponseAgentThread(OpenAIResponseClient client, string responseId)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the entire package is experimental, I'll make this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants