Share via


AgentResponseExtensions.AsChatResponseUpdatesAsync Method

Definition

Creates an asynchronous enumerable of ChatResponseUpdate instances from an asynchronous enumerable of AgentResponseUpdate instances.

public static System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.ChatResponseUpdate> AsChatResponseUpdatesAsync(this System.Collections.Generic.IAsyncEnumerable<Microsoft.Agents.AI.AgentResponseUpdate> responseUpdates);
static member AsChatResponseUpdatesAsync : System.Collections.Generic.IAsyncEnumerable<Microsoft.Agents.AI.AgentResponseUpdate> -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.ChatResponseUpdate>
<Extension()>
Public Function AsChatResponseUpdatesAsync (responseUpdates As IAsyncEnumerable(Of AgentResponseUpdate)) As IAsyncEnumerable(Of ChatResponseUpdate)

Parameters

responseUpdates
IAsyncEnumerable<AgentResponseUpdate>

The sequence of AgentResponseUpdate instances to convert.

Returns

An asynchronous enumerable of ChatResponseUpdate instances built from responseUpdates.

Exceptions

responseUpdates is null.

Remarks

Each AgentResponseUpdate is converted to a ChatResponseUpdate using AsChatResponseUpdate(AgentResponseUpdate).

Applies to