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

25 lines
602 B
C#
Raw Normal View History

2024-02-04 20:01:56 +00:00
using BotSharp.Abstraction.Tasks.Models;
namespace BotSharp.OpenAPI.ViewModels.Agents;
public class AgentTaskUpdateModel
{
public string? Name { get; set; }
public string? Description { get; set; }
public string? Content { get; set; }
public bool Enabled { get; set; }
2024-02-05 00:38:00 +00:00
public string? DirectAgentId { get; set; }
2024-02-04 20:01:56 +00:00
public AgentTask ToAgentTask()
{
return new AgentTask
{
Name = Name,
Description = Description,
Content = Content,
2024-02-05 00:38:00 +00:00
Enabled = Enabled,
DirectAgentId = DirectAgentId
2024-02-04 20:01:56 +00:00
};
}
}