IExternalRequestEnvelope.CreateResponse(IList<ChatMessage>) Method

Definition

Wraps the supplied response messages into the envelope's matching response type for delivery to the workflow's request port.

public object CreateResponse(System.Collections.Generic.IList<Microsoft.Extensions.AI.ChatMessage> messages);
abstract member CreateResponse : System.Collections.Generic.IList<Microsoft.Extensions.AI.ChatMessage> -> obj
Public Function CreateResponse (messages As IList(Of ChatMessage)) As Object

Parameters

messages
IList<ChatMessage>

The response messages, typically containing a FunctionResultContent and/or ToolApprovalResponseContent.

Returns

An instance of the envelope's response type wrapping messages.

Applies to