mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 18:23:45 +08:00
feat: function manager refactor is ready
This commit is contained in:
@@ -6,7 +6,6 @@ type Function struct {
|
||||
Label string
|
||||
Description string
|
||||
Parameters string
|
||||
Required string
|
||||
Action string
|
||||
Token string
|
||||
Enabled bool
|
||||
|
||||
@@ -2,7 +2,7 @@ package vo
|
||||
|
||||
type Parameters struct {
|
||||
Type string `json:"type"`
|
||||
Required []string `json:"required"`
|
||||
Required []string `json:"required,omitempty"`
|
||||
Properties map[string]Property `json:"properties"`
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ type Function struct {
|
||||
Label string `json:"label"`
|
||||
Description string `json:"description"`
|
||||
Parameters Parameters `json:"parameters"`
|
||||
Required []string `json:"required"`
|
||||
Action string `json:"action"`
|
||||
Token string `json:"token"`
|
||||
Enabled bool `json:"enabled"`
|
||||
|
||||
Reference in New Issue
Block a user