57 lines
1.3 KiB
C#
57 lines
1.3 KiB
C#
namespace BotSharp.Abstraction.Agents.Models;
|
|
|
|
public class Agent
|
|
{
|
|
public string Id { get; set; } = string.Empty;
|
|
public string Name { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
public DateTime CreatedDateTime { get; set; }
|
|
public DateTime UpdatedDateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// Instruction
|
|
/// </summary>
|
|
public string Instruction { get; set; }
|
|
|
|
/// <summary>
|
|
/// Samples
|
|
/// </summary>
|
|
public string Samples { get; set; }
|
|
|
|
/// <summary>
|
|
/// Functions
|
|
/// </summary>
|
|
public List<string> Functions { get; set; }
|
|
|
|
/// <summary>
|
|
/// Responses
|
|
/// </summary>
|
|
public List<string> Responses { get; set; }
|
|
|
|
/// <summary>
|
|
/// Domain knowledges
|
|
/// </summary>
|
|
public string Knowledges { get; set; }
|
|
|
|
public override string ToString()
|
|
=> $"{Name} {Id}";
|
|
|
|
public Agent SetInstruction(string instruction)
|
|
{
|
|
Instruction = instruction;
|
|
return this;
|
|
}
|
|
|
|
public Agent SetFunctions(List<string> functions)
|
|
{
|
|
Functions = functions ?? new List<string>();
|
|
return this;
|
|
}
|
|
|
|
public Agent SetResponses(List<string> responses)
|
|
{
|
|
Responses = responses ?? new List<string>(); ;
|
|
return this;
|
|
}
|
|
}
|