mirror of
https://github.com/mudler/cogito.git
synced 2026-07-23 10:25:44 -04:00
950e28d7b3
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
23 lines
492 B
Go
23 lines
492 B
Go
package structures
|
|
|
|
import "github.com/sashabaranov/go-openai/jsonschema"
|
|
|
|
type Goal struct {
|
|
Goal string `json:"goal"`
|
|
}
|
|
|
|
func StructureGoal() (Structure, *Goal) {
|
|
return structureType[Goal](
|
|
jsonschema.Definition{
|
|
Type: jsonschema.Object,
|
|
AdditionalProperties: false,
|
|
Properties: map[string]jsonschema.Definition{
|
|
"goal": {
|
|
Type: jsonschema.String,
|
|
Description: "The final goal to reach",
|
|
},
|
|
},
|
|
Required: []string{"goal"},
|
|
})
|
|
}
|