storage

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConversationRecord

type ConversationRecord struct {
	ID             string
	ConversationID string
	AgentName      string
	AgentVersion   string
	TurnCount      int
	TurnAvg        float64
	HolisticScore  float64
	HolisticReason string
	FinalScore     float64
	Verdict        string
	TurnResults    []models.TurnEvaluationResult
	CreatedAt      time.Time
}

ConversationRecord is the database record for a full conversation evaluation.

type ConversationSummary

type ConversationSummary struct {
	ConversationID string
	AgentName      string
	AgentVersion   string
	TurnCount      int
	FinalScore     float64
	Verdict        string
	CreatedAt      time.Time
}

ConversationSummary provides aggregated metrics for the list endpoint.

type DB

type DB interface {
	Close() error
}

type HealthMetricsData

type HealthMetricsData struct {
	TotalEvaluations int
	AvgConfidence    float64
}

HealthMetricsData holds aggregated metrics for the health endpoint.

type Repository

type Repository interface {
	StoreConversation(ctx context.Context, record *ConversationRecord) error
	GetConversation(ctx context.Context, conversationID string) (*ConversationRecord, error)
	ListConversations(ctx context.Context) ([]ConversationSummary, error)
	HealthMetrics(ctx context.Context, since time.Time) (HealthMetricsData, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL