2023-10-27 15:18:48 +00:00
|
|
|
namespace BotSharp.Abstraction.Models;
|
|
|
|
|
|
2024-08-27 15:42:48 +00:00
|
|
|
public class MessageConfig
|
2023-10-27 15:18:48 +00:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Completion Provider
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("provider")]
|
|
|
|
|
public virtual string? Provider { get; set; } = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Model name
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("model")]
|
|
|
|
|
public virtual string? Model { get; set; } = null;
|
|
|
|
|
|
2024-03-25 16:22:43 +00:00
|
|
|
/// <summary>
|
2024-08-27 15:42:48 +00:00
|
|
|
/// Model id
|
2024-03-25 16:22:43 +00:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("model_id")]
|
|
|
|
|
public virtual string? ModelId { get; set; } = null;
|
|
|
|
|
|
2023-10-27 15:18:48 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// The sampling temperature to use that controls the apparent creativity of generated completions.
|
|
|
|
|
/// </summary>
|
2024-03-07 18:27:29 +00:00
|
|
|
public float Temperature { get; set; } = 0f;
|
2023-10-27 15:18:48 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An alternative value to Temperature, called nucleus sampling, that causes
|
|
|
|
|
/// the model to consider the results of the tokens with probability mass.
|
|
|
|
|
/// </summary>
|
2024-03-07 18:27:29 +00:00
|
|
|
public float SamplingFactor { get; set; } = 0f;
|
2023-10-27 15:18:48 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Conversation states from input
|
|
|
|
|
/// </summary>
|
2024-08-27 15:42:48 +00:00
|
|
|
public List<MessageState> States { get; set; } = new();
|
2024-02-12 15:14:33 +00:00
|
|
|
|
2024-10-23 01:52:18 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Conversation tags
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<string> Tags { get; set; } = new();
|
|
|
|
|
|
2024-02-12 15:14:33 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Agent task id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? TaskId { get; set; }
|
2023-10-27 15:18:48 +00:00
|
|
|
}
|