Files
geekai/api/store/vo/function.go
T
RockYang b18b8ccb02 release: v4.2.8
整合开源版 v4.2.8 功能:Sora2 视频、路由重构、手机站开关、DALL-E 参考图,以及启动时自动同步数据表字段等修复与优化。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 11:12:37 +08:00

25 lines
685 B
Go

package vo
type Parameters struct {
Type string `json:"type"`
Required []string `json:"required,omitempty"`
Properties map[string]Property `json:"properties"`
}
type Property struct {
Type string `json:"type"`
Description string `json:"description"`
}
type Function struct {
Id uint `json:"id"`
Name string `json:"name"`
Label string `json:"label"`
Description string `json:"description"`
Parameters Parameters `json:"parameters"`
Action string `json:"action"`
Token string `json:"token"`
Enabled bool `json:"enabled"`
Power int `json:"power"`
}