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 map[string]string `json:"headers"`
HeadersSorted string `json:"headersSorted"`
HeadersSortedSha256 string `json:"headersSortedSha256"`
Method string `json:"method"`
ProtocolVersion string `json:"protocolVersion"`
Request string `json:"request"`
SessionID string `json:"sessionID"`
UserAgent string `json:"userAgent"`
}
HTTPRequest contains information about the HTTP request.
type LLMInfo ¶ added in v1.1.0
type LLMInfo struct {
Model string `json:"model,omitempty"`
Provider string `json:"provider,omitempty"`
Temperature float64 `json:"temperature,omitempty"`
}
LLMInfo holds information about the large language model
type Logger ¶
type Logger struct {
EnrichCache *enrich.Enricher
Sessionizer *Sessionizer
EventLogger *cblog.Logger
EventFile *os.File
LLMConfig llm.Config
Logger *cblog.Logger
}
Logger contains the components for logging.
func New ¶
func New(eventLogFile string, modelConfig llm.Config, eCache *enrich.Enricher, sessionizer *Sessionizer, l *cblog.Logger) (*Logger, error)
New creates a new Logger instance with the specified configuration.
type ResponseMetadata ¶ added in v1.1.0
type ResponseMetadata struct {
GenerationSource string `json:"generationSource"`
Info LLMInfo `json:"info,omitempty"`
}
ResponseMetadata holds metadata about the generated response
type Sessionizer ¶ added in v1.1.0
type Sessionizer struct {
// contains filtered or unexported fields
}
Sessionizer represents the session cache implementation.
func NewSessionizer ¶ added in v1.1.0
func NewSessionizer(cfg Config) *Sessionizer
New creates a new Sessionizer instance with the specified configuration.
Click to show internal directories.
Click to hide internal directories.