// Copyright (c) Microsoft. All rights reserved.
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.AI.Workflows;
///
/// Represents an event triggered when an agent produces a response.
///
public sealed class AgentResponseEvent : WorkflowOutputEvent
{
///
/// Initializes a new instance of the class.
///
/// The identifier of the executor that generated this event.
/// The agent response.
public AgentResponseEvent(string executorId, AgentResponse response) : base(response, executorId)
{
this.Response = Throw.IfNull(response);
}
///
/// Gets the agent response.
///
public AgentResponse Response { get; }
}