mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-06 15:07:58 +00:00
Introduces comprehensive memory management capabilities including: - Memory database interface with SQLite implementation - Memory manager for storing and retrieving agent memories - Memory tool for agent interaction with memory system 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
24 lines
524 B
Go
24 lines
524 B
Go
package database
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type UserMemory struct {
|
|
ID string
|
|
CreatedAt string
|
|
Memory string
|
|
}
|
|
|
|
type Memory interface {
|
|
AddMemory(ctx context.Context, memory UserMemory) error
|
|
GetMemories(ctx context.Context) ([]UserMemory, error)
|
|
DeleteMemory(ctx context.Context, memory UserMemory) error
|
|
}
|
|
|
|
type Database interface {
|
|
AddMemory(ctx context.Context, memory UserMemory) error
|
|
GetMemories(ctx context.Context) ([]UserMemory, error)
|
|
DeleteMemory(ctx context.Context, memory UserMemory) error
|
|
}
|