storage

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conversation

type Conversation struct {
	Model string
}

type Storage

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

func NewStorage

func NewStorage(cfg *config.Config) (*Storage, error)

func (*Storage) Clear

func (s *Storage) Clear(chatID int64)

func (*Storage) GetConversation

func (s *Storage) GetConversation(chatID int64) (Conversation, error)

func (*Storage) GetMessages

func (s *Storage) GetMessages(chatID int64) []ollama.Message

func (*Storage) SaveConversation

func (s *Storage) SaveConversation(chatID int64, conversation Conversation) error

func (*Storage) SaveMessage

func (s *Storage) SaveMessage(chatID int64, message ollama.Message)

Jump to

Keyboard shortcuts

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