manager

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	pg.PoolConn
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, pool pg.PoolConn, opts ...Opt) (*Manager, error)

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

func (m *Manager) ListPrompts(ctx context.Context) ([]llm.Prompt, error)

ListPrompts returns all prompts advertised by the connected remote server.

func (*Manager) ListResources

func (m *Manager) ListResources(ctx context.Context) ([]llm.Resource, error)

ListResources returns all resources advertised by the connected remote server.

func (*Manager) ListTools

func (m *Manager) ListTools(ctx context.Context) ([]llm.Tool, error)

ListTools returns all tools advertised by the connected remote server.

func (*Manager) Run

func (m *Manager) Run(ctx context.Context) error

Run establishes and drives the connection until ctx is cancelled or the remote server closes it.

type Opt

type Opt func(*opt) error

Opt configures a Manager during construction.

func WithSchemas

func WithSchemas(memory, llm, auth string) Opt

WithSchemas sets the database schema names to use for all queries. If not set the default schemas are used.

func WithTracer

func WithTracer(tracer trace.Tracer) Opt

WithTracer sets the OpenTelemetry tracer used for manager spans.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL