36 lines
960 B
C#
36 lines
960 B
C#
|
|
using Newtonsoft.Json;
|
|||
|
|
using Newtonsoft.Json.Linq;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Text;
|
|||
|
|
|
|||
|
|
namespace BotSharp.Platform.Rasa.Models
|
|||
|
|
{
|
|||
|
|
public class RasaStatusModel
|
|||
|
|
{
|
|||
|
|
[JsonProperty("available_projects")]
|
|||
|
|
public JObject AvailableProjects { get; set; }
|
|||
|
|
|
|||
|
|
[JsonProperty("current_training_processes")]
|
|||
|
|
public int CurrentTrainingProcesses { get; set; }
|
|||
|
|
|
|||
|
|
[JsonProperty("max_training_processes")]
|
|||
|
|
public int MaxTrainingProcesses { get; set; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public class RasaProjectModel
|
|||
|
|
{
|
|||
|
|
[JsonProperty("status")]
|
|||
|
|
public string Status { get; set; }
|
|||
|
|
|
|||
|
|
[JsonProperty("current_training_processes")]
|
|||
|
|
public int CurrentTrainingProcesses { get; set; }
|
|||
|
|
|
|||
|
|
[JsonProperty("available_models")]
|
|||
|
|
public List<string> AvailableModels { get; set; }
|
|||
|
|
|
|||
|
|
[JsonProperty("loaded_models")]
|
|||
|
|
public List<string> LoadedModels { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|