Documentation
¶
Index ¶
- type Service
- func (s *Service) Chat(ctx context.Context, userMessage string) (string, error)
- func (s *Service) ClearHistory()
- func (s *Service) GetHistory() []*models.Message
- func (s *Service) SetHistory(messages []*models.Message)
- func (s *Service) StreamChat(ctx context.Context, userMessage string, callback func(string) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.