Share via


IAgentThread.AddUserMessageAsync Method

Definition

Add a textual user message to the thread.

public System.Threading.Tasks.Task<Microsoft.SemanticKernel.Experimental.Agents.IChatMessage> AddUserMessageAsync (string message, System.Collections.Generic.IEnumerable<string>? fileIds = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AddUserMessageAsync : string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Experimental.Agents.IChatMessage>
Public Function AddUserMessageAsync (message As String, Optional fileIds As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IChatMessage)

Parameters

message
String

The user message

fileIds
IEnumerable<String>

up to 10 file ids to reference for the message

cancellationToken
CancellationToken

A cancellation token

Returns

Applies to