ChatProtocolExtensions.IsChatProtocol(ProtocolDescriptor, Boolean) 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.
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.