Share via


ProtocolBuilder.YieldsOutput<TOutput> Method

Definition

Adds the specified output type to the set of declared "yielded" output types for the protocol. Objects of this type will be allowed to be output from the executor through the WorkflowOutputEvent, via YieldOutputAsync(Object, CancellationToken).

public Microsoft.Agents.AI.Workflows.ProtocolBuilder YieldsOutput<TOutput>();
member this.YieldsOutput : unit -> Microsoft.Agents.AI.Workflows.ProtocolBuilder
Public Function YieldsOutput(Of TOutput) () As ProtocolBuilder

Type Parameters

TOutput

The type to be declared.

Returns

Applies to