package
0.0.0-20250219065129-52aed497bc00
Repository: https://github.com/infinilabs/coco-server.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package sqlite3 adds support for chat message history using sqlite3.
No description provided by the author

# Functions

No description provided by the author
NewChatMessageHistory creates a new ChatMessageHistory using chat message options.
NewConversationBuffer is a function for crating a new buffer memory.
NewConversationTokenBuffer is a function for crating a new token buffer memory.
NewConversationWindowBuffer is a function for crating a new window buffer memory.
No description provided by the author
WithAIPrefix is an option for specifying the AI prefix.
WithChatHistory is an option for providing the chat history store.
WithHumanPrefix is an option for specifying the human prefix.
WithInputKey is an option for specifying the input key.
WithMemoryKey is an option for specifying the memory key.
WithOutputKey is an option for specifying the output key.
WithPreviousMessages is an option for NewChatMessageHistory for adding previous messages to the history.
WithReturnMessages is an option for specifying should it return messages.

# Variables

ErrInvalidInputValues is returned when input values given to a memory in save context are invalid.

# Structs

ChatMessageHistory is a struct that stores chat messages.
ConversationBuffer is a simple form of memory that remembers previous conversational back and forth directly.
ConversationTokenBuffer for storing conversation memory.
ConversationWindowBuffer for storing conversation memory.
Simple is a class that implement the memory interface, but does nothing.

# Type aliases

ChatMessageHistoryOption is a function for creating new chat message history with other than the default values.
ConversationBufferOption is a function for creating new buffer with other than the default values.