update to json.RawMessage (#441)

This commit is contained in:
Savannah Ostrowski
2023-07-14 21:33:55 -07:00
committed by GitHub
parent 0234c1e0c2
commit 1876e0c207

View File

@@ -65,7 +65,7 @@ type FunctionDefinition struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
// Parameters is an object describing the function.
// You can pass a []byte describing the schema,
// You can pass json.RawMessage to describe the schema,
// or you can pass in a struct which serializes to the proper JSON schema.
// The jsonschema package is provided for convenience, but you should
// consider another specialized library if you require more complex schemas.