created a json schema to define model answers

This commit is contained in:
Nils Kruthoff 2026-06-30 16:24:52 +02:00
parent c527fad2bf
commit c0367c890b
No known key found for this signature in database
GPG Key ID: A5C0151B4DDB172C

View File

@ -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
}
}
}