Share via


AgentResponseEvent Class

Definition

Represents an event triggered when an agent produces a response.

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

Constructors

Name Description
AgentResponseEvent(String, AgentResponse)

Initializes a new instance of the AgentResponseEvent class.

Properties

Name Description
Data

Optional payload

(Inherited from WorkflowEvent)
ExecutorId

The unique identifier of the executor that yielded this output.

(Inherited from WorkflowOutputEvent)
Response

Gets the agent response.

SourceId
Obsolete.

The unique identifier of the executor that yielded this output.

(Inherited from WorkflowOutputEvent)

Methods

Name Description
As<T>()

Attempts to retrieve the underlying data as the specified type.

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