file_store

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 DeleteFile(jobID string) error

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"`
}

Jump to

Keyboard shortcuts

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