UP-Viagg-io/Viagg-io/Assets/afca/ViaggioAI/Scripts/ViaggioAI/RequestDataModel.cs

26 lines
654 B
C#
Executable File

using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
public class RequestDataModel
{
public string InputText;
public Dictionary<string, string> PossibleIntents = new Dictionary<string, string>();
public string GetRequestText()
{
StringBuilder sb = new StringBuilder();
foreach (KeyValuePair<string, string> keyValuePair in this.PossibleIntents)
{
sb.AppendLine($"Key=\"{keyValuePair.Key}\",Text=\"{keyValuePair.Value}\",");
}
sb.AppendLine($"Input=\"{this.InputText}\"");
return sb.ToString();
}
}