Documentation
¶
Index ¶
- type Manager
- func (m *Manager) CreateMemory(ctx context.Context, insert schema.MemoryInsert) (_ *schema.Memory, err error)
- func (m *Manager) GetMemory(ctx context.Context, session uuid.UUID, key string) (_ *schema.Memory, err error)
- func (m *Manager) ListMemory(ctx context.Context, req schema.MemoryListRequest) (_ *schema.MemoryList, err error)
- func (m *Manager) ListPrompts(ctx context.Context) ([]llm.Prompt, error)
- func (m *Manager) ListResources(ctx context.Context) ([]llm.Resource, error)
- func (m *Manager) ListTools(ctx context.Context) ([]llm.Tool, error)
- func (m *Manager) Run(ctx context.Context) error
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
func (*Manager) CreateMemory ¶
func (m *Manager) CreateMemory(ctx context.Context, insert schema.MemoryInsert) (_ *schema.Memory, err error)
CreateMemory validates and persists a new memory entry.
func (*Manager) GetMemory ¶
func (m *Manager) GetMemory(ctx context.Context, session uuid.UUID, key string) (_ *schema.Memory, err error)
GetMemory returns a single memory entry by session and key.
func (*Manager) ListMemory ¶
func (m *Manager) ListMemory(ctx context.Context, req schema.MemoryListRequest) (_ *schema.MemoryList, err error)
ListMemory returns memory entries matching the request filters.
func (*Manager) ListPrompts ¶
ListPrompts returns all prompts advertised by the connected remote server.
func (*Manager) ListResources ¶
ListResources returns all resources advertised by the connected remote server.
type Opt ¶
type Opt func(*opt) error
Opt configures a Manager during construction.
func WithSchemas ¶
WithSchemas sets the database schema names to use for all queries. If not set the default schemas are used.
func WithTracer ¶
WithTracer sets the OpenTelemetry tracer used for manager spans.
Click to show internal directories.
Click to hide internal directories.