// Copyright (c) Microsoft. All rights reserved. using System.Text.Json.Serialization; using Microsoft.Extensions.AI; namespace Microsoft.Agents.AI.Workflows.Declarative.Events; /// /// Represents a request for external input. /// public sealed class ExternalInputRequest { /// /// The source message that triggered the request for external input. /// public AgentResponse AgentResponse { get; } [JsonConstructor] internal ExternalInputRequest(AgentResponse agentResponse) { this.AgentResponse = agentResponse; } internal ExternalInputRequest(ChatMessage message) { this.AgentResponse = new AgentResponse(message); } internal ExternalInputRequest(string text) { this.AgentResponse = new AgentResponse(new ChatMessage(ChatRole.User, text)); } }