mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
77e5f527c4
* Clean up stale mentions of M.E.AI.Agents * Unused usings
27 lines
865 B
C#
27 lines
865 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using Microsoft.Shared.Diagnostics;
|
|
|
|
namespace Microsoft.Agents.AI.Workflows;
|
|
|
|
/// <summary>
|
|
/// Represents an event triggered when an agent run produces an update.
|
|
/// </summary>
|
|
public class AgentRunResponseEvent : ExecutorEvent
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="AgentRunUpdateEvent"/> class.
|
|
/// </summary>
|
|
/// <param name="executorId">The identifier of the executor that generated this event.</param>
|
|
/// <param name="response">The agent run response.</param>
|
|
public AgentRunResponseEvent(string executorId, AgentRunResponse response) : base(executorId, data: response)
|
|
{
|
|
this.Response = Throw.IfNull(response);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the agent run response.
|
|
/// </summary>
|
|
public AgentRunResponse Response { get; }
|
|
}
|