mirror of
https://github.com/mudler/cogito.git
synced 2026-07-23 10:25:44 -04:00
6bb97feb18
* feat: add guidelines to steer tool selection Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Display suggested tools Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * Add tests Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
24 lines
601 B
Go
24 lines
601 B
Go
package structures
|
|
|
|
import "github.com/sashabaranov/go-openai/jsonschema"
|
|
|
|
type Guidelines struct {
|
|
Guidelines []int `json:"guidelines"`
|
|
}
|
|
|
|
func StructureGuidelines() (Structure, *Guidelines) {
|
|
return structureType[Guidelines](
|
|
jsonschema.Definition{
|
|
Type: jsonschema.Object,
|
|
AdditionalProperties: false,
|
|
Properties: map[string]jsonschema.Definition{
|
|
"guidelines": {
|
|
Type: jsonschema.Array,
|
|
Items: &jsonschema.Definition{Type: jsonschema.Integer},
|
|
Description: "List of guidelines",
|
|
},
|
|
},
|
|
Required: []string{"guidelines"},
|
|
})
|
|
}
|