Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPRequest ¶
type HTTPRequest struct { Body string `json:"body"` BodySha256 string `json:"bodySha256"` Headers string `json:"headers"` HeadersSorted string `json:"headersSorted"` HeadersSortedSha256 string `json:"headersSortedSha256"` Method string `json:"method"` ProtocolVersion string `json:"protocolVersion"` Request string `json:"request"` UserAgent string `json:"userAgent"` }
HTTPRequest contains information about the HTTP request.
type LLM ¶
type LLM struct { Model string `json:"model"` Provider string `json:"provider"` Temperature float64 `json:"temperature"` }
LLM contains information about the large language model.
type Logger ¶
type Logger struct { EnrichCache *enrich.Enricher EventLogger *logrus.Logger LLMConfig llm.Config Logger *logrus.Logger }
Logger contains the components for logging.
func New ¶
func New(eventLogFile string, modelConfig llm.Config, eCache *enrich.Enricher, l *logrus.Logger) (*Logger, error)
New creates a new Logger instance with the specified configuration.
Click to show internal directories.
Click to hide internal directories.