BotSharp/src/Plugins/BotSharp.Plugin.Twilio/Models/ConversationalVoiceRequest.cs

25 lines
682 B
C#
Raw Normal View History

2024-11-12 22:51:33 +00:00
using Microsoft.AspNetCore.Mvc;
namespace BotSharp.Plugin.Twilio.Models;
public class ConversationalVoiceRequest : VoiceRequest
{
2025-02-27 04:52:14 +00:00
[FromQuery(Name = "agent-id")]
2025-03-10 15:10:22 +00:00
public string AgentId { get; set; } = string.Empty;
2025-02-27 04:52:14 +00:00
2024-11-12 22:51:33 +00:00
[FromRoute]
2025-03-10 15:10:22 +00:00
public string ConversationId { get; set; } = string.Empty;
2024-11-12 22:51:33 +00:00
[FromRoute]
public int SeqNum { get; set; }
public int Attempts { get; set; } = 1;
2025-03-10 15:10:22 +00:00
public int AIResponseWaitTime { get; set; } = 0;
public string? AIResponseErrorMessage { get; set; } = string.Empty;
2024-11-12 22:51:33 +00:00
2025-03-10 15:10:22 +00:00
public string Intent { get; set; } = string.Empty;
public string? InitAudioFile { get; set; }
2024-11-12 22:51:33 +00:00
public List<string> States { get; set; } = [];
}