ChatResponseUpdateExtensions.ToChatResponse 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.
Combines ChatResponseUpdate instances into a single ChatResponse.
public static Microsoft.Extensions.AI.ChatResponse ToChatResponse(this System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatResponseUpdate> updates, bool coalesceContent = true);
static member ToChatResponse : seq<Microsoft.Extensions.AI.ChatResponseUpdate> * bool -> Microsoft.Extensions.AI.ChatResponse
<Extension()>
Public Function ToChatResponse (updates As IEnumerable(Of ChatResponseUpdate), Optional coalesceContent As Boolean = true) As ChatResponse
Parameters
- updates
- IEnumerable<ChatResponseUpdate>
The updates to be combined.
- coalesceContent
- Boolean
true
to attempt to coalesce contiguous AIContent items, where applicable,
into a single AIContent, in order to reduce the number of individual content items that are included in
the manufactured ChatMessage instances. When false
, the original content items are used.
The default is true
.
Returns
The combined ChatResponse.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET