Documentation
¶
Index ¶
- func AddChatHistory(jobID, automationID string, chatHistory []automations.MessageDataDtoV1) error
- func AddMessage(jobID, automationID, content string, messageType message_enums.Type) error
- func DeleteFile(jobID string) error
- func LoadMessages(jobID string) ([]llms.ChatMessage, error)
- type MessageJsonFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddChatHistory ¶
func AddChatHistory(jobID, automationID string, chatHistory []automations.MessageDataDtoV1) error
func AddMessage ¶
func AddMessage(jobID, automationID, content string, messageType message_enums.Type) error
func DeleteFile ¶
func LoadMessages ¶
func LoadMessages(jobID string) ([]llms.ChatMessage, error)
Types ¶
type MessageJsonFormat ¶
type MessageJsonFormat struct {
JobID string `json:"job_id"`
AutomationID string `json:"automation_id"`
Content string `json:"content"`
Type message_enums.Type `json:"type"`
}
Click to show internal directories.
Click to hide internal directories.