Documentation
¶
Index ¶
- type Conversation
- type Storage
- func (s *Storage) Clear(chatID int64)
- func (s *Storage) GetConversation(chatID int64) (Conversation, error)
- func (s *Storage) GetMessages(chatID int64) []ollama.Message
- func (s *Storage) SaveConversation(chatID int64, conversation Conversation) error
- func (s *Storage) SaveMessage(chatID int64, message ollama.Message)
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 (*Storage) GetConversation ¶
func (s *Storage) GetConversation(chatID int64) (Conversation, error)
func (*Storage) SaveConversation ¶
func (s *Storage) SaveConversation(chatID int64, conversation Conversation) error
Click to show internal directories.
Click to hide internal directories.