mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-12 13:52:11 +00:00
created a json schema to define model answers
This commit is contained in:
parent
c527fad2bf
commit
c0367c890b
@ -0,0 +1,84 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://mindwork.ai/ai-studio/assistant-builder-lua-response.schema.json",
|
||||
"title": "Assistant Builder Lua Response",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"schema_version",
|
||||
"plugin",
|
||||
"assistant",
|
||||
"full_lua"
|
||||
],
|
||||
"properties": {
|
||||
"schema_version": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"assistant_builder_lua_response_v1"
|
||||
]
|
||||
},
|
||||
"plugin": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"name",
|
||||
"description",
|
||||
"categories"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"categories": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"assistant": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"title",
|
||||
"description",
|
||||
"system_prompt",
|
||||
"submit_text",
|
||||
"allow_ai_studio_profiles"
|
||||
],
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"system_prompt": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"submit_text": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"allow_ai_studio_profiles": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"full_lua": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user