Share via


ChatProtocolExtensions.IsChatProtocol(ProtocolDescriptor, Boolean) Method

Definition

Determines whether the specified protocol descriptor represents the Agent Workflow Chat Protocol.

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

Parameters

descriptor
ProtocolDescriptor

The protocol descriptor to evaluate.

allowCatchAll
Boolean

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

Returns

true if the protocol descriptor represents a supported chat protocol; otherwise, false.

Applies to