AI-Studio/app/MindWork AI Studio/Assistants/Builder/AssistantBuilderLuaResponse.schema.json
Peer Hogeterp a4c35fc2f2
Added direct-chat launchers for assistant plugins and a dialog to reconfigure them (#935)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
2026-08-27 16:19:35 +02:00

164 lines
3.4 KiB
JSON

{
"$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": {
"const": "assistant_builder_lua_response_v2"
},
"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": {
"oneOf": [
{
"$ref": "#/$defs/formAssistant"
},
{
"$ref": "#/$defs/chatLauncherAssistant"
}
]
},
"full_lua": {
"type": "string",
"minLength": 1
}
},
"$defs": {
"formAssistant": {
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"title",
"description",
"system_prompt",
"submit_text",
"allow_ai_studio_profiles"
],
"properties": {
"kind": {
"const": "FORM"
},
"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"
}
}
},
"chatLauncherAssistant": {
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"title",
"description",
"launch"
],
"properties": {
"kind": {
"const": "CHAT_LAUNCHER"
},
"title": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"launch": {
"$ref": "#/$defs/chatLaunch"
}
}
},
"chatLaunch": {
"type": "object",
"additionalProperties": false,
"required": [
"workspace_name"
],
"properties": {
"workspace_name": {
"type": "string",
"minLength": 1
},
"provider_id": {
"type": "string",
"format": "uuid",
"not": {
"const": "00000000-0000-0000-0000-000000000000"
}
},
"profile_id": {
"type": "string",
"format": "uuid"
},
"chat_template_id": {
"type": "string",
"format": "uuid"
},
"data_source_ids": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"format": "uuid",
"not": {
"const": "00000000-0000-0000-0000-000000000000"
}
}
}
}
}
}
}