interaction

package
v0.0.0-...-f11b149 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package interaction provides the interaction management functionalities

Index

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

func (m *Manager) CreateInteraction(ctx context.Context, query string) (types.Interaction, error)

CreateInteraction creates a new interaction

func (*Manager) RegisterRoutes

func (m *Manager) RegisterRoutes(r chi.Router)

RegisterRoutes registers the interaction routes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL