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>
24 lines
564 B
Go
24 lines
564 B
Go
package structures
|
|
|
|
import "github.com/sashabaranov/go-openai/jsonschema"
|
|
|
|
type Gaps struct {
|
|
Gaps []string `json:"gaps"`
|
|
}
|
|
|
|
func StructureGaps() (Structure, *Gaps) {
|
|
return structureType[Gaps](
|
|
jsonschema.Definition{
|
|
Type: jsonschema.Object,
|
|
AdditionalProperties: false,
|
|
Properties: map[string]jsonschema.Definition{
|
|
"gaps": {
|
|
Type: jsonschema.Array,
|
|
Items: &jsonschema.Definition{Type: jsonschema.String},
|
|
Description: "List of gaps in the content",
|
|
},
|
|
},
|
|
Required: []string{"gaps"},
|
|
})
|
|
}
|