2023-06-26 23:08:24 +00:00
|
|
|
using BotSharp.Abstraction.Agents.Models;
|
|
|
|
|
|
2023-06-11 23:46:02 +00:00
|
|
|
namespace BotSharp.Core.Agents.ViewModels;
|
|
|
|
|
|
|
|
|
|
public class AgentUpdateModel
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Description { get; set; }
|
2023-06-26 23:08:24 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Instruction
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Instruction { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Samples
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Samples { get; set; }
|
|
|
|
|
|
|
|
|
|
public Agent ToAgent()
|
|
|
|
|
{
|
|
|
|
|
return new Agent
|
|
|
|
|
{
|
|
|
|
|
Name = Name,
|
|
|
|
|
Description = Description,
|
|
|
|
|
Instruction = Instruction,
|
|
|
|
|
Samples = Samples
|
|
|
|
|
};
|
|
|
|
|
}
|
2023-06-11 23:46:02 +00:00
|
|
|
}
|