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
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา