-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
base: feature-openai-responses-agent
Are you sure you want to change the base?
Conversation
9685eff
to
3c39c4e
Compare
} | ||
|
||
/// <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) |
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.
nit.
Is this experimental? Can we change this? suggest using responseId here, not clear what id this is referring to.
public OpenAIResponseAgentThread(OpenAIResponseClient client, string id) | |
public OpenAIResponseAgentThread(OpenAIResponseClient client, string responseId) |
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.
Yes, the entire package is experimental, I'll make this change
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