ProtocolBuilder.SendsMessage<TMessage> 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.
Adds the specified type to the set of declared "sent" message types for the protocol. Objects of these types will be allowed to be sent through the Executor's outgoing edges, via SendMessageAsync(Object, String, CancellationToken).
public Microsoft.Agents.AI.Workflows.ProtocolBuilder SendsMessage<TMessage>();
member this.SendsMessage : unit -> Microsoft.Agents.AI.Workflows.ProtocolBuilder
Public Function SendsMessage(Of TMessage) () As ProtocolBuilder
Type Parameters
- TMessage
The type to be declared.