memory

package
v0.0.0-...-1414e4b Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

func NewBuffer

func NewBuffer(windowSize int, history *flowllm.ChatMessages) *Buffer

func (*Buffer) Load

func (*Buffer) Save

func (b *Buffer) Save(_ context.Context, input, output string) error

type ChatMessageHistory

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

func (*ChatMessageHistory) AddAssistantMessage

func (h *ChatMessageHistory) AddAssistantMessage(message string)

func (*ChatMessageHistory) AddUserMessage

func (h *ChatMessageHistory) AddUserMessage(message string)

func (*ChatMessageHistory) Clear

func (h *ChatMessageHistory) Clear()

func (*ChatMessageHistory) GetMessages

func (h *ChatMessageHistory) GetMessages() flowllm.ChatMessages

Jump to

Keyboard shortcuts

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