OrderedFailoverChatClient(IReadOnlyList<IChatClient>, Boolean) Constructor
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.
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.