package
0.0.0-20240509090842-11decd0816f6
Repository: https://github.com/iflytek/spark-ai-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
NewChatMessageHistory creates a new ChatMessageHistory using chat message options.
NewConversationBuffer is a function for crating a new buffer memory.
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.
No description provided by the author
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.
# Interfaces
Memory is a Large Language Model.
# 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.