mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-21 00:33:48 +00:00
218 lines
4.9 KiB
JSON
218 lines
4.9 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_v3"
|
|
},
|
|
"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,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"enum": [
|
|
"CORE",
|
|
"BUSINESS",
|
|
"INDUSTRY",
|
|
"UTILITY",
|
|
"SOFTWARE_DEVELOPMENT",
|
|
"GAMING",
|
|
"EDUCATION",
|
|
"ENTERTAINMENT",
|
|
"SOCIAL",
|
|
"SHOPPING",
|
|
"TRAVEL",
|
|
"HEALTH",
|
|
"FITNESS",
|
|
"FOOD",
|
|
"PARTY",
|
|
"SPORTS",
|
|
"NEWS",
|
|
"WEATHER",
|
|
"MUSIC",
|
|
"POLITICAL",
|
|
"SCIENCE",
|
|
"TECHNOLOGY",
|
|
"ART",
|
|
"FICTION",
|
|
"WRITING",
|
|
"CONTENT_CREATION",
|
|
"COMMON",
|
|
"AI_STUDIO_DEVELOPMENT",
|
|
"CUSTOM"
|
|
]
|
|
}
|
|
},
|
|
"custom_categories": {
|
|
"description": "The names of the custom categories. Required with CUSTOM in categories, and empty or absent otherwise.",
|
|
"type": "array",
|
|
"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"
|
|
},
|
|
"tool_ids": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"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,
|
|
"properties": {
|
|
"workspace_name": {
|
|
"description": "Omit this field for a launcher that opens a chat without a workspace.",
|
|
"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"
|
|
}
|
|
}
|
|
},
|
|
"tool_ids": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|