memory

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 NewCombined added in v0.0.5

func NewCombined(memories ...golc.Memory) (*Combined, error)

func (*Combined) Clear added in v0.0.5

func (m *Combined) Clear() error

func (*Combined) LoadMemoryVariables added in v0.0.5

func (m *Combined) LoadMemoryVariables(inputs map[string]any) (map[string]any, error)

func (*Combined) MemoryVariables added in v0.0.5

func (m *Combined) MemoryVariables() []string

func (*Combined) SaveContext added in v0.0.5

func (m *Combined) SaveContext(inputs map[string]any, outputs map[string]any) error

type ConversationBuffer added in v0.0.6

type ConversationBuffer struct {
	// contains filtered or unexported fields
}

func NewConversationBuffer added in v0.0.6

func NewConversationBuffer() *ConversationBuffer

func (*ConversationBuffer) Clear added in v0.0.6

func (m *ConversationBuffer) Clear() error

func (*ConversationBuffer) LoadMemoryVariables added in v0.0.6

func (m *ConversationBuffer) LoadMemoryVariables(inputs map[string]any) (map[string]any, error)

func (*ConversationBuffer) MemoryVariables added in v0.0.6

func (m *ConversationBuffer) MemoryVariables() []string

func (*ConversationBuffer) SaveContext added in v0.0.6

func (m *ConversationBuffer) SaveContext(inputs map[string]any, outputs map[string]any) error

type ConversationBufferOptions added in v0.0.6

type ConversationBufferOptions struct {
	HumanPrefix        string
	AIPrefix           string
	MemoryKey          string
	InputKey           string
	OutputKey          string
	ReturnMessages     bool
	ChatMessageHistory golc.ChatMessageHistory
}

type Readonly added in v0.0.5

type Readonly struct {
	// contains filtered or unexported fields
}

func NewReadonly added in v0.0.5

func NewReadonly(memory golc.Memory) Readonly

func (*Readonly) Clear added in v0.0.5

func (m *Readonly) Clear() error

func (*Readonly) LoadMemoryVariables added in v0.0.5

func (m *Readonly) LoadMemoryVariables(inputs map[string]any) (map[string]any, error)

func (*Readonly) MemoryVariables added in v0.0.5

func (m *Readonly) MemoryVariables() []string

func (*Readonly) SaveContext added in v0.0.5

func (m *Readonly) SaveContext(inputs map[string]any, outputs map[string]any) error

type Simple

type Simple struct {
	// contains filtered or unexported fields
}

func NewSimple

func NewSimple() Simple

func (*Simple) Clear

func (m *Simple) Clear() error

func (*Simple) LoadMemoryVariables

func (m *Simple) LoadMemoryVariables(inputs map[string]any) (map[string]any, error)

func (*Simple) MemoryVariables

func (m *Simple) MemoryVariables() []string

func (*Simple) SaveContext

func (m *Simple) SaveContext(inputs map[string]any, outputs map[string]any) error

type Summary added in v0.0.5

type Summary struct{}

type SummaryOptions added in v0.0.5

type SummaryOptions struct {
	HumanPrefix string
	AIPrefix    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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