Documentation
¶
Overview ¶
Package interaction provides the interaction management functionalities
Index ¶
- type Manager
- func (m *Manager) AddSystemConversation(ctx context.Context, interactionUUID uuid.UUID, message string) (types.Conversation, error)
- func (m *Manager) AddUserConversation(ctx context.Context, interactionUUID uuid.UUID, message string) (types.Conversation, error)
- func (m *Manager) CreateInteraction(ctx context.Context, query string) (types.Interaction, error)
- func (m *Manager) RegisterRoutes(r chi.Router)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the interaction manager
func NewManager ¶
func NewManager(storage storage.Storage, logger *logrus.Logger, searchSystem search.System, aclManager auth.ACLManager) *Manager
NewManager creates a new interaction manager
func (*Manager) AddSystemConversation ¶
func (m *Manager) AddSystemConversation(ctx context.Context, interactionUUID uuid.UUID, message string) (types.Conversation, error)
AddSystemConversation adds a system conversation to an interaction
func (*Manager) AddUserConversation ¶
func (m *Manager) AddUserConversation(ctx context.Context, interactionUUID uuid.UUID, message string) (types.Conversation, error)
AddUserConversation adds a user conversation to an interaction
func (*Manager) CreateInteraction ¶
CreateInteraction creates a new interaction
func (*Manager) RegisterRoutes ¶
func (m *Manager) RegisterRoutes(r chi.Router)
RegisterRoutes registers the interaction routes
Click to show internal directories.
Click to hide internal directories.