WorkflowAgentProvider.GetMessageAsync 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.
Retrieves a specific message from a conversation.
public abstract System.Threading.Tasks.Task<Microsoft.Extensions.AI.ChatMessage> GetMessageAsync(string conversationId, string messageId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMessageAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.ChatMessage>
Public MustOverride Function GetMessageAsync (conversationId As String, messageId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChatMessage)
Parameters
- conversationId
- String
The identifier of the target conversation.
- messageId
- String
The identifier of the target message.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
The requested message