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