mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* rename AgentRunResponse and AgentRunResponseUpdate classes - part1 * rename varialbles, parameters, methods and tests * rollback unnecessary changes
34 lines
875 B
C#
34 lines
875 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Text.Json.Serialization;
|
|
using Microsoft.Extensions.AI;
|
|
|
|
namespace Microsoft.Agents.AI.Workflows.Declarative.Events;
|
|
|
|
/// <summary>
|
|
/// Represents a request for external input.
|
|
/// </summary>
|
|
public sealed class ExternalInputRequest
|
|
{
|
|
/// <summary>
|
|
/// The source message that triggered the request for external input.
|
|
/// </summary>
|
|
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));
|
|
}
|
|
}
|