using BotSharp.Abstraction.Agents.Models;
namespace BotSharp.OpenAPI.ViewModels.Agents;
public class AgentUpdateModel
{
public string? Name { get; set; } = string.Empty;
public string? Description { get; set; }
///
/// Instruction
///
public string? Instruction { get; set; }
///
/// Templates
///
public List? Templates { get; set; }
///
/// Samples
///
public string? Samples { get; set; }
///
/// Functions
///
public List? Functions { get; set; }
///
/// Routes
///
public List? Responses { get; set; }
public Agent ToAgent()
{
var agent = new Agent()
{
Name = Name ?? string.Empty,
Description = Description ?? string.Empty,
Instruction = Instruction ?? string.Empty,
Templates = Templates ?? new List(),
Functions = Functions ?? new List(),
Responses = Responses ?? new List()
};
return agent;
}
}