Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryUpdate ¶
type MemoryUpdate struct {
Added []struct {
Entity string `json:"entity"`
Relation string `json:"relation"`
Content string `json:"content"`
Category string `json:"category"`
Type string `json:"type"`
Importance int `json:"importance"`
Reason string `json:"reason"`
} `json:"added"`
Updated []struct {
ID int64 `json:"id"`
Content string `json:"content"`
Type string `json:"type,omitempty"`
Importance int `json:"importance"`
Reason string `json:"reason"`
} `json:"updated"`
Removed []struct {
ID int64 `json:"id"`
Reason string `json:"reason"`
} `json:"removed"`
}
MemoryUpdate represents the changes returned by the LLM
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger *slog.Logger, cfg *config.Config, factRepo storage.FactRepository, userRepo storage.UserRepository, factHistoryRepo storage.FactHistoryRepository, orClient openrouter.Client, translator *i18n.Translator) *Service
func (*Service) ProcessSession ¶
func (*Service) SetVectorSearcher ¶
func (s *Service) SetVectorSearcher(vs VectorSearcher)
Click to show internal directories.
Click to hide internal directories.