Share via


ChatProtocolExtensions.ThrowIfNotChatProtocol Method

Definition

Throws an exception if the specified protocol descriptor does not represent a valid chat protocol.

public static void ThrowIfNotChatProtocol(this Microsoft.Agents.AI.Workflows.ProtocolDescriptor descriptor, bool allowCatchAll = false);
static member ThrowIfNotChatProtocol : Microsoft.Agents.AI.Workflows.ProtocolDescriptor * bool -> unit
<Extension()>
Public Sub ThrowIfNotChatProtocol (descriptor As ProtocolDescriptor, Optional allowCatchAll As Boolean = false)

Parameters

descriptor
ProtocolDescriptor

The protocol descriptor to validate as a chat protocol. Cannot be null.

allowCatchAll
Boolean

If true, will allow protocols handling all inputs to be treated as a Chat Protocol

Applies to