Skip to content

Commit

Permalink
rebuild schema
Browse files Browse the repository at this point in the history
Rebuild the schema with changes in the diff below, using `yarn gen-schema` from aiconfig/typescript dir
  • Loading branch information
Ankush Pala [email protected] committed Jan 15, 2024
1 parent e101b67 commit ce0f55d
Showing 1 changed file with 46 additions and 10 deletions.
56 changes: 46 additions & 10 deletions schema/aiconfig.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,44 @@
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/JSONValue",
"description": "The data representing the attachment"
"description": "The data representing the attachment",
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"$ref": "#/definitions/JSONArray"
},
{
"description": "This represents the attachment data that is stored as a string, but we use\nboth the `kind` field here and the `mime_type` in Attachment to convert\nthe string into the input format we want.",
"type": "object",
"properties": {
"kind": {
"enum": [
"base64",
"file_uri"
],
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"kind",
"value"
]
},
{
"type": [
"null",
"string",
"number",
"boolean"
]
}
]
},
"mime_type": {
"description": "The MIME type of the result. If not specified, the MIME type will be\nassumed to be text/plain",
Expand Down Expand Up @@ -200,10 +236,7 @@
"additionalProperties": {}
},
{
"type": "array",
"items": {
"$ref": "#/definitions/JSONValue"
}
"$ref": "#/definitions/JSONArray"
},
{
"type": [
Expand All @@ -215,6 +248,12 @@
}
]
},
"JSONArray": {
"type": "array",
"items": {
"$ref": "#/definitions/JSONValue"
}
},
"Output": {
"description": "Model inference result.",
"anyOf": [
Expand All @@ -239,10 +278,7 @@
"additionalProperties": {}
},
{
"type": "array",
"items": {
"$ref": "#/definitions/JSONValue"
}
"$ref": "#/definitions/JSONArray"
},
{
"description": "This represents the output content that is storied as a string, but we use\nboth the `kind` field here and the `mime_type` in ExecuteResult to convert\nthe string into the output format we want.",
Expand Down

0 comments on commit ce0f55d

Please sign in to comment.