service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeService

type CodeService interface {
	RunGenerate(generate *request.CodeGenerate) (*response.CodeGenerate, error)
}

func NewCodeService

func NewCodeService(c container.Container) CodeService

type ConversationService

type ConversationService interface {
	FindConversations(username string, req *request.ConversationList) ([]*models.Conversation, error)
	FindById(id string) (*models.Conversation, error)
	RunConversation(username string, req *request.ConversationRun, callback oc.Callback) (*models.Message, error)
	RunConversationWS(command, prompt string, buffer *memory.Buffer, callback oc.Callback) error
	RunBase(prompt string) (string, error)
	DeleteByIds(ids []uuid.UUID) error
	FeedbackMessage(req *request.MessageFeedback) error
}

func NewConversationService

func NewConversationService(c container.Container) ConversationService

type LLMService

type LLMService interface {
	FindAllLLMs(req *request.LLMList) ([]*models.LLM, error)
}

func NewLLMService

func NewLLMService(c container.Container) LLMService

type RoleService

type RoleService interface {
	FindAllRoles(req *request.RoleList) ([]*models.Role, error)
	CreateRole(req *request.RoleCreate) error
	UpdateById(id uint, req *request.RoleUpdate) error
}

func NewRoleService

func NewRoleService(c container.Container) RoleService

type UserService

type UserService interface {
	AuthByUserAndPassword(username, password string) bool
	FindUserByName(username string) (*models.User, error)
	FindAllUsers(req *request.UserList) ([]*models.User, error)
	CreateUser(req *request.UserCreate) error
}

func NewUserService

func NewUserService(c container.Container) UserService

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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