Table of Contents

Class GenAiLogVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
[AttTable("GenAiLog", 20240418)]
[AttTableProducts(new Products[] { Products.GenAIPack })]
[AttTableOrderBy("highlightedAnswer, createdDate, createdHour", "D,D,D")]
[AttTableVOInfo(typeof(GenAiLogAttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.RequiresAdminAccess, TableFlags.NotSaveLog })]
public class GenAiLogVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
GenAiLogVO

Properties

GetFieldStampName

Use only field name without table name

public override string GetFieldStampName { get; }

Property Value

string

GetStampValue

public override string GetStampValue { get; }

Property Value

string

aiModel

This field allows choosing the GPT model

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public GenAiApi.AiModelEnum aiModel { get; set; }

Property Value

GenAiApi.AiModelEnum

aiResponseSize

This field identifies the temperature maded on the question

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public GenAiApi.AiResponseSizeEnum aiResponseSize { get; set; }

Property Value

GenAiApi.AiResponseSizeEnum

aiTemperature

This field identifies the temperature maded on the question

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public GenAiApi.AiTemperatureEnum aiTemperature { get; set; }

Property Value

GenAiApi.AiTemperatureEnum

balance

[AttLenght(10)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public int balance { get; set; }

Property Value

int

contextGenAI

This field identifies the context maded

[AttFieldType(AttFieldType.InputTypes.memo, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string contextGenAI { get; set; }

Property Value

string

createdDate

This field identifies the date when was created

[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
[AttLogInfo(2)]
public DateTime createdDate { get; set; }

Property Value

DateTime

createdHour

This field identifies the hour when was created

[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.time, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string createdHour { get; set; }

Property Value

string

entity

This field identifies the entity where the GenAI was called

[AttLenght(25)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string entity { get; set; }

Property Value

string

entityName

[AttVirtualField]
[AttLocale(typeof(GenAiLogAttInfo), new string[] { "[GenAiLog].[entity]" })]
[AttList]
[AttLogInfo(1)]
public string entityName { get; set; }

Property Value

string

entityStamp

This field identifies the record stamp where the GenAI was called

[AttLenght(25)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string entityStamp { get; set; }

Property Value

string

extraEntity

This field identifies the report was executed(fusql/mapdefcab)

[AttLenght(25)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string extraEntity { get; set; }

Property Value

string

extraStamp

This field identifies the report stamp was executed(fusql/mapdefcab)

[AttLenght(25)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string extraStamp { get; set; }

Property Value

string

genAiEntityType

This field identifies if the log was create on Reporting panel(Analyses/Listing) or in MainForm

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public GenAiApi.GenAiEntityTypeEnum genAiEntityType { get; set; }

Property Value

GenAiApi.GenAiEntityTypeEnum

genailogstamp

This field uniquely identifies the record (primary key by default)

[AttLenght(25)]
public string genailogstamp { get; set; }

Property Value

string

highlightedAnswer

This field identifies if the obtained answer is highlighted (comes first in the list of previously answered questions)

[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool highlightedAnswer { get; set; }

Property Value

bool

question

This field identifies the question maded

[AttFieldType(AttFieldType.InputTypes.memo, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string question { get; set; }

Property Value

string

response

This field identifies the response from GenAI

[AttFieldType(AttFieldType.InputTypes.memo, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string response { get; set; }

Property Value

string

responseId

This field identifies the id from response

[AttLenght(100)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string responseId { get; set; }

Property Value

string

username

This field identifies the user name

[AttLenght(30)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
[AttLogInfo(0)]
public string username { get; set; }

Property Value

string

usstamp

This field identifies the user stamp

[AttLenght(25)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string usstamp { get; set; }

Property Value

string

words

[AttLenght(10)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public int words { get; set; }

Property Value

int

Methods

SetStampValue(string)

public override void SetStampValue(string stampID)

Parameters

Nome Tipo Descrição
stampID string