IExternalRequestEnvelope.CreateResponse(IList<ChatMessage>) 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.
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.