Share via


FunctionInvokingChatClient.AddResponseMessages Method

Definition

Adds one or more response messages for function invocation results.

protected:
 virtual System::Collections::Generic::IList<Microsoft::Extensions::AI::ChatMessage ^> ^ AddResponseMessages(System::Collections::Generic::IList<Microsoft::Extensions::AI::ChatMessage ^> ^ chat, ReadOnlySpan<Microsoft::Extensions::AI::FunctionInvokingChatClient::FunctionInvocationResult ^> results);
protected virtual System.Collections.Generic.IList<Microsoft.Extensions.AI.ChatMessage> AddResponseMessages (System.Collections.Generic.IList<Microsoft.Extensions.AI.ChatMessage> chat, ReadOnlySpan<Microsoft.Extensions.AI.FunctionInvokingChatClient.FunctionInvocationResult> results);
abstract member AddResponseMessages : System.Collections.Generic.IList<Microsoft.Extensions.AI.ChatMessage> * ReadOnlySpan<Microsoft.Extensions.AI.FunctionInvokingChatClient.FunctionInvocationResult> -> System.Collections.Generic.IList<Microsoft.Extensions.AI.ChatMessage>
override this.AddResponseMessages : System.Collections.Generic.IList<Microsoft.Extensions.AI.ChatMessage> * ReadOnlySpan<Microsoft.Extensions.AI.FunctionInvokingChatClient.FunctionInvocationResult> -> System.Collections.Generic.IList<Microsoft.Extensions.AI.ChatMessage>
Protected Overridable Function AddResponseMessages (chat As IList(Of ChatMessage), results As ReadOnlySpan(Of FunctionInvokingChatClient.FunctionInvocationResult)) As IList(Of ChatMessage)

Parameters

chat
IList<ChatMessage>

The chat to which to add the one or more response messages.

results
ReadOnlySpan<FunctionInvokingChatClient.FunctionInvocationResult>

Information about the function call invocations and results.

Returns

A list of all chat messages added to chat.

Applies to