From 7b60c5f6e6301364e956befe7e03a772a73221ae Mon Sep 17 00:00:00 2001 From: krut_ni Date: Mon, 29 Sep 2025 20:58:01 +0200 Subject: [PATCH] changing the lua file to become a more generic usage example --- .../Plugins/assistants/icon.lua | 1 + .../Plugins/assistants/plugin.lua | 31 ++++++++++++++----- 2 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 app/MindWork AI Studio/Plugins/assistants/icon.lua diff --git a/app/MindWork AI Studio/Plugins/assistants/icon.lua b/app/MindWork AI Studio/Plugins/assistants/icon.lua new file mode 100644 index 00000000..045bd983 --- /dev/null +++ b/app/MindWork AI Studio/Plugins/assistants/icon.lua @@ -0,0 +1 @@ +SVG = [[]] \ No newline at end of file diff --git a/app/MindWork AI Studio/Plugins/assistants/plugin.lua b/app/MindWork AI Studio/Plugins/assistants/plugin.lua index c1af0050..bb0e48e9 100644 --- a/app/MindWork AI Studio/Plugins/assistants/plugin.lua +++ b/app/MindWork AI Studio/Plugins/assistants/plugin.lua @@ -1,34 +1,39 @@ require("icon") +-- ------ +-- This is an example of an assistant plugin that will build an assistant for you. +-- Please replace the placeholders and assign a valid ID. +-- ------ + -- The ID for this plugin: -ID = "43065dbc-78d0-45b7-92be-f14c2926e2dc" +ID = "00000000-0000-0000-0000-000000000000" -- The icon for the plugin: ICON_SVG = SVG -- The name of the plugin: -NAME = "MindWork AI Studio - German / Deutsch" +NAME = " - Configuration for " -- The description of the plugin: -DESCRIPTION = "Dieses Plugin bietet deutsche Sprachunterstützung für MindWork AI Studio." +DESCRIPTION = "This is a pre-defined configuration of " -- The version of the plugin: VERSION = "1.0.0" -- The type of the plugin: -TYPE = "LANGUAGE" +TYPE = "ASSISTANT" -- The authors of the plugin: -AUTHORS = {"MindWork AI Community"} +AUTHORS = {""} -- The support contact for the plugin: -SUPPORT_CONTACT = "MindWork AI Community" +SUPPORT_CONTACT = "" -- The source URL for the plugin: -SOURCE_URL = "https://github.com/MindWorkAI/AI-Studio" +SOURCE_URL = "" -- The categories for the plugin: -CATEGORIES = { "ASSISTANT" } +CATEGORIES = { "CORE" } -- The target groups for the plugin: TARGET_GROUPS = { "EVERYONE" } @@ -39,6 +44,16 @@ IS_MAINTAINED = true -- When the plugin is deprecated, this message will be shown to users: DEPRECATION_MESSAGE = "" +ASSISTANT = { + ["Title"] = "", + ["Description"] = "<Description presented to the users, explaining your assistant>", + ["UI"] = { + ["Type"] = "FORM", + ["Children"] = {} + }, +} + +-- An example of a assistant that resembles AI Studios translation assistant: ASSISTANT = { ["Title"] = "Grammatik- und Rechtschreibprüfung", ["Description"] = "Grammatik und Rechtschreibung eines Textes überprüfen.",