Share via


ProtocolBuilder.SendsMessage<TMessage> Method

Definition

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.

Returns

Applies to