Versions in this module Expand all Collapse all v1 v1.0.0 Jul 31, 2023 Changes in this version + func GetBufferString(messages []ChatMessage, humanPrefix, aiPrefix string) (string, error) + type AIChatMessage struct + Text string + func (m AIChatMessage) GetText() string + func (m AIChatMessage) GetType() ChatMessageType + type ChatMessage interface + GetText func() string + GetType func() ChatMessageType + type ChatMessageType string + const ChatMessageTypeAI + const ChatMessageTypeHuman + const ChatMessageTypeSystem + type HumanChatMessage struct + Text string + func (m HumanChatMessage) GetText() string + func (m HumanChatMessage) GetType() ChatMessageType + type Memory interface + Clear func() error + LoadMemoryVariables func(inputs map[string]any) (map[string]any, error) + MemoryVariables func() []string + SaveContext func(inputs map[string]any, outputs map[string]any) error + type SystemChatMessage struct + Text string + func (m SystemChatMessage) GetText() string + func (m SystemChatMessage) GetType() ChatMessageType