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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.