Documentation
¶
Index ¶
- type Config
- type LongTerm
- func (l *LongTerm) Deinit(ctx context.Context) error
- func (l *LongTerm) Init(ctx context.Context) error
- func (l *LongTerm) Reset(ctx context.Context) error
- func (l *LongTerm) Save(ctx context.Context, text string, meta map[string]interface{}, agent string) error
- func (l *LongTerm) Search(ctx context.Context, query string, limit int32, threshold float32) ([]interface{}, error)
- type Memory
- type ShortTerm
- func (s *ShortTerm) Deinit(ctx context.Context) error
- func (s *ShortTerm) Init(ctx context.Context) error
- func (s *ShortTerm) Reset(ctx context.Context) error
- func (s *ShortTerm) Save(ctx context.Context, text string, meta map[string]interface{}, agent string) error
- func (s *ShortTerm) Search(ctx context.Context, query string, limit int32, threshold float32) ([]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
type Memory ¶
Click to show internal directories.
Click to hide internal directories.