Share via


WorkflowOutputEvent Class

Definition

Event triggered when a workflow executor yields output.

[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Agents.AI.Workflows.AgentResponseEvent))]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Agents.AI.Workflows.AgentResponseUpdateEvent))]
public class WorkflowOutputEvent : Microsoft.Agents.AI.Workflows.WorkflowEvent
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Agents.AI.Workflows.AgentResponseEvent))>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Agents.AI.Workflows.AgentResponseUpdateEvent))>]
type WorkflowOutputEvent = class
    inherit WorkflowEvent
Public Class WorkflowOutputEvent
Inherits WorkflowEvent
Inheritance
WorkflowOutputEvent
Derived
Attributes

Constructors

Name Description
WorkflowOutputEvent(Object, String)

Initializes a new instance of the WorkflowOutputEvent class.

Properties

Name Description
Data

Optional payload

(Inherited from WorkflowEvent)
ExecutorId

The unique identifier of the executor that yielded this output.

SourceId
Obsolete.

The unique identifier of the executor that yielded this output.

Methods

Name Description
As<T>()

Attempts to retrieve the underlying data as the specified type.

AsType(Type)

Attempts to retrieve the underlying data as the specified type.

Is<T>()

Determines whether the underlying data is of the specified type or a derived type.

Is<T>(T)

Determines whether the underlying data is of the specified type or a derived type, and returns it as that type if it is.

IsType(Type)

Determines whether the underlying data is of the specified type or a derived type.

ToString() (Inherited from WorkflowEvent)

Applies to