Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatBotService ¶
func NewChatBotService ¶
func NewChatBotService(ctx *context.ERPContext, redisService *redis.RedisService, aiGenerator *ai_generator.AiGeneratorService) *ChatBotService
func (*ChatBotService) RegisterFunction ¶
func (e *ChatBotService) RegisterFunction(name string, fn any)
func (*ChatBotService) RunChatBot ¶
func (e *ChatBotService) RunChatBot( body objects.MsgObject, redisKey, userMsg string, chatbotFlow *models.ChatbotFlow, responseToUser func(sender, userMsg, response, redisKey string), generateAiContent func(generator *ai_generator.AiGenerator, agent *models.AiAgentModel, sender, redisKey, userMsg string) (*objects.AiResponse, error), ) error
Click to show internal directories.
Click to hide internal directories.