-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathtypes.go
More file actions
23 lines (20 loc) · 701 Bytes
/
Copy pathtypes.go
File metadata and controls
23 lines (20 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package muninn
import (
"errors"
"time"
)
// ErrNotFound is returned when an engram with the requested ID does not exist.
var ErrNotFound = errors.New("engram not found")
// Engram is a single memory record returned by the public API.
type Engram struct {
ID string `json:"id"`
Concept string `json:"concept"`
Content string `json:"content"`
Summary string `json:"summary,omitempty"`
State string `json:"state,omitempty"`
Score float64 `json:"score,omitempty"`
Confidence float32 `json:"confidence,omitempty"`
Tags []string `json:"tags,omitempty"`
CreatedAt time.Time `json:"created_at"`
LastAccess time.Time `json:"last_access"`
}