Documentation ¶
Index ¶
- type Memory
- func (m *Memory) AddMessage(msg Message)
- func (m *Memory) GetConversationHistory() []Message
- func (m *Memory) GetModel() string
- func (m *Memory) GetProviderName() string
- func (m *Memory) Load() error
- func (m *Memory) Save() error
- func (m *Memory) SetConversationHistory(history []Message)
- func (m *Memory) SetModel(model string)
- func (m *Memory) SetProviderName(name string)
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct { ConversationHistory []Message `json:"conversation_history"` ProviderName string `json:"provider_name"` Model string `json:"model"` // contains filtered or unexported fields }
func (*Memory) AddMessage ¶
func (*Memory) GetConversationHistory ¶
func (*Memory) GetProviderName ¶
func (*Memory) SetConversationHistory ¶
func (*Memory) SetProviderName ¶
Click to show internal directories.
Click to hide internal directories.