FunctionInvokingChatClient.AddResponseMessages 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.
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.
Information about the function call invocations and results.
Returns
A list of all chat messages added to chat
.
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.