mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-18 18:04:20 +00:00
18 lines
478 B
Go
18 lines
478 B
Go
package memory
|
|
|
|
import "time"
|
|
|
|
type Event struct {
|
|
TS time.Time `json:"ts"`
|
|
Kind string `json:"kind"`
|
|
Role string `json:"role,omitempty"`
|
|
Type string `json:"type,omitempty"`
|
|
Text string `json:"text,omitempty"`
|
|
Meta map[string]string `json:"meta,omitempty"`
|
|
}
|
|
|
|
type Store interface {
|
|
Append(session string, events []Event) error
|
|
Search(session string, query string, maxChars int, maxSnippets int) ([]string, error)
|
|
}
|