Files
docker-agent/pkg/memory/database/database.go
T
2025-10-20 15:38:34 +02:00

21 lines
524 B
Go

package database
import (
"context"
"errors"
)
var ErrEmptyID = errors.New("memory ID cannot be empty")
type UserMemory struct {
ID string `description:"The ID of the memory"`
CreatedAt string `description:"The creation timestamp of the memory"`
Memory string `description:"The content of the memory"`
}
type Database interface {
AddMemory(ctx context.Context, memory UserMemory) error
GetMemories(ctx context.Context) ([]UserMemory, error)
DeleteMemory(ctx context.Context, memory UserMemory) error
}