OrderedFailoverChatClient(IReadOnlyList<IChatClient>, Boolean) Constructor

Definition

Initializes a new instance of the OrderedFailoverChatClient class.

public OrderedFailoverChatClient(System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.IChatClient> clients, bool leaveOpen = false);
new Microsoft.Extensions.AI.OrderedFailoverChatClient : System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.IChatClient> * bool -> Microsoft.Extensions.AI.OrderedFailoverChatClient
Public Sub New (clients As IReadOnlyList(Of IChatClient), Optional leaveOpen As Boolean = false)

Parameters

clients
IReadOnlyList<IChatClient>

The clients to invoke, in fallback order.

leaveOpen
Boolean

true to leave inner clients open when this instance is disposed; otherwise, false.

Exceptions

clients is null.

clients is empty or contains null.

Applies to