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 ¶
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
Click to show internal directories.
Click to hide internal directories.