Skip to content

Commit c5aa3e6

Browse files
committed
Consistent naming
1 parent 48ab517 commit c5aa3e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dotnet/samples/GettingStartedWithAgents/Step8_OpenAIAssistant.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ await OpenAIAssistantAgent.CreateAsync(
5757
// Local function to invoke agent and display the conversation messages.
5858
async Task InvokeAgentAsync(string input)
5959
{
60-
await agent.AddMessageToThreadAsync(threadId, new ChatMessageContent(AuthorRole.User, input));
60+
await agent.AddChatMessageAsync(threadId, new ChatMessageContent(AuthorRole.User, input));
6161

6262
Console.WriteLine($"# {AuthorRole.User}: '{input}'");
6363

dotnet/src/Agents/OpenAI/OpenAIAssistantAgent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public static async Task<bool> DeleteThreadAsync(
211211
/// <param name="threadId">The thread identifier</param>
212212
/// <param name="message">A non-system message with which to append to the conversation.</param>
213213
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
214-
public Task AddThreadMessageAsync(string threadId, ChatMessageContent message, CancellationToken cancellationToken = default)
214+
public Task AddChatMessageAsync(string threadId, ChatMessageContent message, CancellationToken cancellationToken = default)
215215
{
216216
this.ThrowIfDeleted();
217217

0 commit comments

Comments
 (0)