From c0367c890b302aa3c04e8b51e6421eb296c1d714 Mon Sep 17 00:00:00 2001 From: Nils Kruthoff Date: Tue, 30 Jun 2026 16:24:52 +0200 Subject: [PATCH] created a json schema to define model answers --- .../AssistantBuilderLuaResponse.schema.json | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 app/MindWork AI Studio/Assistants/Meta/AssistantBuilderLuaResponse.schema.json diff --git a/app/MindWork AI Studio/Assistants/Meta/AssistantBuilderLuaResponse.schema.json b/app/MindWork AI Studio/Assistants/Meta/AssistantBuilderLuaResponse.schema.json new file mode 100644 index 00000000..955d9e63 --- /dev/null +++ b/app/MindWork AI Studio/Assistants/Meta/AssistantBuilderLuaResponse.schema.json @@ -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 + } + } +}