次の方法で共有


OpenAIAssistantAgent.AddChatMessageAsync Method

Definition

Adds a message to the specified thread.

public System.Threading.Tasks.Task AddChatMessageAsync (string threadId, Microsoft.SemanticKernel.ChatMessageContent message, System.Threading.CancellationToken cancellationToken = default);
member this.AddChatMessageAsync : string * Microsoft.SemanticKernel.ChatMessageContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function AddChatMessageAsync (threadId As String, message As ChatMessageContent, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

threadId
String

The thread identifier

message
ChatMessageContent

A non-system message with which to append to the conversation.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Applies to