Click or drag to resize

Audit Class

Class dedicated to log events for audit purpose
Inheritance Hierarchy
SystemObject
  Seal.ModelAudit

Namespace: Seal.Model
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.0.0+c1250b26c169a4ba4d702dc7579506e87ba2cd3a
Syntax
C#
public class Audit

The Audit type exposes the following members.

Constructors
 NameDescription
Public methodAuditInitializes a new instance of the Audit class
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberLogAIChatAudit Audit an AI Chat exchange (one user message and its final reply). Token usage is taken from the agent's last exchange, the detail is the chat title.
Public methodStatic memberLogAudit Execute the audit script for a given event
Public methodStatic memberLogEventAudit Audit an event
Public methodStatic memberLogReportAudit Audit a report execution
Public methodLogToDatabase Default audit implementation: inserts the audit record into the 'sr_audit' table of the data source having a name starting with 'Audit'. The table is created on first use and upgraded automatically when new columns are introduced. Called by the default Audit Script; a custom script can also call it (Model.LogToDatabase()) before or after its own processing.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldAIAgentName 
Public fieldAICalls 
Public fieldAICost 
Public fieldAIInputTokens 
Public fieldAIMessageCount 
Public fieldAIModel 
Public fieldAIOutputTokens 
Public fieldAIProvider 
Public fieldAIToolCalls 
Public fieldStatic memberAuditScriptTemplate 
Public fieldStatic memberCheckTableCreation 
Public fieldDetail 
Public fieldDuration Duration in seconds for events without a Report (e.g. AI Chat exchanges). When Report is set, the report execution duration is used instead.
Public fieldError 
Public fieldPath 
Public fieldReport 
Public fieldSchedule 
Public fieldType 
Public fieldUser 
Top
See Also