Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Prompt ¶
type Prompt struct {
// IDs
ID uint `gorm:"primaryKey"`
SessionID string `gorm:"not null;index:session"`
// Content
Agent string `gorm:"not null"`
State string `gorm:"not null"`
System string `gorm:"not null"`
HistoryLen int `gorm:"not null"`
Request string `gorm:"not null"`
Provider string `gorm:"not null"`
Model string `gorm:"not null"`
Response string
// Time
CreatedAt time.Time `gorm:"not null"`
MachTimeSum int `gorm:"not null"`
MachTime string `gorm:"not null"`
}
Prompt represents a prompt record in the database.
Click to show internal directories.
Click to hide internal directories.