35 lines
752 B
Go
35 lines
752 B
Go
package entitys
|
|
|
|
import (
|
|
"ai_scheduler/internal/data/constants"
|
|
)
|
|
|
|
type Recognize struct {
|
|
SystemPrompt string
|
|
UserContent *RecognizeUserContent
|
|
ChatHis ChatHis
|
|
Tasks []RegistrationTask
|
|
Ch chan Response
|
|
}
|
|
|
|
type RegistrationTask struct {
|
|
Name string
|
|
Desc string
|
|
TaskConfigDetail TaskConfigDetail
|
|
}
|
|
|
|
type RecognizeUserContent struct {
|
|
Text string
|
|
File *RecognizeFile
|
|
ActionCardUrl string
|
|
Tag string
|
|
}
|
|
|
|
type FileData []byte
|
|
|
|
type RecognizeFile struct {
|
|
File []FileData // 文件数据(二进制格式)
|
|
FileUrl string // 文件下载链接
|
|
FileType constants.Caller // 文件类型(文件类型,能填最好填,可以跳过一层判断)
|
|
}
|