IAgentThread.AddUserMessageAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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