Share via


AgentResponseUpdateEvent Class

Definition

Represents an event triggered when an agent run produces an update.

public sealed class AgentResponseUpdateEvent : Microsoft.Agents.AI.Workflows.WorkflowOutputEvent
type AgentResponseUpdateEvent = class
    inherit WorkflowOutputEvent
Public NotInheritable Class AgentResponseUpdateEvent
Inherits WorkflowOutputEvent
Inheritance
AgentResponseUpdateEvent

Constructors

Name Description
AgentResponseUpdateEvent(String, AgentResponseUpdate)

Initializes a new instance of the AgentResponseUpdateEvent class.

Properties

Name Description
Data

Optional payload

(Inherited from WorkflowEvent)
ExecutorId

The unique identifier of the executor that yielded this output.

(Inherited from WorkflowOutputEvent)
SourceId
Obsolete.

The unique identifier of the executor that yielded this output.

(Inherited from WorkflowOutputEvent)
Update

Gets the agent run response update.

Methods

Name Description
As<T>()

Attempts to retrieve the underlying data as the specified type.

(Inherited from WorkflowOutputEvent)
AsResponse()

Converts this event to an AgentResponse containing just this update.

AsType(Type)

Attempts to retrieve the underlying data as the specified type.

(Inherited from WorkflowOutputEvent)
Is<T>()

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

(Inherited from WorkflowOutputEvent)
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.

(Inherited from WorkflowOutputEvent)
IsType(Type)

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

(Inherited from WorkflowOutputEvent)
ToString() (Inherited from WorkflowEvent)

Applies to