ChatProtocolExtensions.ThrowIfNotChatProtocol 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.
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