Documentation ¶
Overview ¶
Package memory contains implementations for managing conversation data and facilitating the persistence of state between chain or agent calls.
Index ¶
- type Combined
- func (m *Combined) Clear(ctx context.Context) error
- func (m *Combined) LoadMemoryVariables(ctx context.Context, inputs map[string]any) (map[string]any, error)
- func (m *Combined) MemoryKeys() []string
- func (m *Combined) SaveContext(ctx context.Context, inputs map[string]any, outputs map[string]any) error
- type ConversationBuffer
- func (m *ConversationBuffer) Clear(ctx context.Context) error
- func (m *ConversationBuffer) LoadMemoryVariables(ctx context.Context, inputs map[string]any) (map[string]any, error)
- func (m *ConversationBuffer) MemoryKeys() []string
- func (m *ConversationBuffer) SaveContext(ctx context.Context, inputs map[string]any, outputs map[string]any) error
- type ConversationBufferOptions
- type Readonly
- func (m *Readonly) Clear(ctx context.Context) error
- func (m *Readonly) LoadMemoryVariables(ctx context.Context, inputs map[string]any) (map[string]any, error)
- func (m *Readonly) MemoryKeys() []string
- func (m *Readonly) SaveContext(ctx context.Context, inputs map[string]any, outputs map[string]any) error
- type Simple
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Combined ¶ added in v0.0.5
type Combined struct {
// contains filtered or unexported fields
}
func (*Combined) LoadMemoryVariables ¶ added in v0.0.5
func (*Combined) MemoryKeys ¶ added in v0.0.21
type ConversationBuffer ¶ added in v0.0.6
type ConversationBuffer struct {
// contains filtered or unexported fields
}
func NewConversationBuffer ¶ added in v0.0.6
func NewConversationBuffer(optFns ...func(o *ConversationBufferOptions)) *ConversationBuffer
func (*ConversationBuffer) Clear ¶ added in v0.0.6
func (m *ConversationBuffer) Clear(ctx context.Context) error
func (*ConversationBuffer) LoadMemoryVariables ¶ added in v0.0.6
func (*ConversationBuffer) MemoryKeys ¶ added in v0.0.21
func (m *ConversationBuffer) MemoryKeys() []string
func (*ConversationBuffer) SaveContext ¶ added in v0.0.6
type ConversationBufferOptions ¶ added in v0.0.6
type Readonly ¶ added in v0.0.5
type Readonly struct {
// contains filtered or unexported fields
}
func NewReadonly ¶ added in v0.0.5
func (*Readonly) LoadMemoryVariables ¶ added in v0.0.5
func (*Readonly) MemoryKeys ¶ added in v0.0.21
type Simple ¶
type Simple struct {
// contains filtered or unexported fields
}
func (*Simple) LoadMemoryVariables ¶
func (*Simple) MemoryKeys ¶ added in v0.0.21
Click to show internal directories.
Click to hide internal directories.