- Adding DateTime Prompt Handling in XAiServiceBase ... - Adding Support for Function Tools Attachment into ChatOptions when Asking Ai ... - Adding XDateTimeDescriptor class for Configuring DateTime attaching in Prompt Context, attached it on XAiApiConfiguration and also Configure it in appSettings File ...
35 lines
979 B
C#
35 lines
979 B
C#
namespace xAiApi.Models
|
|
{
|
|
public class XDateTimeDescriptor
|
|
{
|
|
/// <summary>
|
|
/// Adding Current DateTime to Prompt ...
|
|
/// </summary>
|
|
public bool InjectIntoSystemPrompt { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Time Zone ...
|
|
/// </summary>
|
|
public string DefaultTimezone { get; set; } = "Asia/Tehran";
|
|
|
|
/// <summary>
|
|
/// Georgian Date Format ...
|
|
/// </summary>
|
|
public string GregorianFormat { get; set; } = "yyyy-MM-dd HH:mm:ss";
|
|
|
|
/// <summary>
|
|
/// Include Persian Calendar ...
|
|
/// </summary>
|
|
public bool IncludePersianCalendar { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Include Day of Week ...
|
|
/// </summary>
|
|
public bool IncludeDayOfWeek { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Include Unix Timestamp ...
|
|
/// </summary>
|
|
public bool IncludeUnixTimestamp { get; set; } = false;
|
|
}
|
|
} |