BotSharp/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Agents/AgentCreationModel.cs

27 lines
684 B
C#
Raw Normal View History

2023-08-19 00:15:02 +00:00
using BotSharp.Abstraction.Agents.Models;
namespace BotSharp.OpenAPI.ViewModels.Agents;
public class AgentCreationModel
{
public string Name { get; set; }
public string Description { get; set; }
2023-08-28 05:28:14 +00:00
public string Instruction { get; set; }
2023-09-02 05:10:46 +00:00
public List<string> Functions { get; set; }
2023-09-09 21:44:25 +00:00
public List<AgentResponse> Responses { get; set; }
2023-09-04 15:15:11 +00:00
public bool IsPublic { get; set; }
2023-08-19 00:15:02 +00:00
public Agent ToAgent()
{
return new Agent
{
Name = Name,
2023-08-28 05:28:14 +00:00
Description = Description,
Instruction = Instruction,
Functions = Functions,
2023-09-04 15:15:11 +00:00
Responses = Responses,
IsPublic = IsPublic
2023-08-19 00:15:02 +00:00
};
}
}