changing the lua file to become a more generic usage example

This commit is contained in:
krut_ni 2025-09-29 20:58:01 +02:00
parent aba61ffb3c
commit 7b60c5f6e6
2 changed files with 24 additions and 8 deletions

View File

@ -0,0 +1 @@
SVG = [[<svg enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#1f1f1f"><g><path d="M0,0h24v24H0V0z" fill="none"/><path d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z"/></g></svg>]]

View File

@ -1,34 +1,39 @@
require("icon") 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: -- The ID for this plugin:
ID = "43065dbc-78d0-45b7-92be-f14c2926e2dc" ID = "00000000-0000-0000-0000-000000000000"
-- The icon for the plugin: -- The icon for the plugin:
ICON_SVG = SVG ICON_SVG = SVG
-- The name of the plugin: -- The name of the plugin:
NAME = "MindWork AI Studio - German / Deutsch" NAME = "<Company Name> - Configuration for <Department Name>"
-- The description of the plugin: -- 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 <Company Name>"
-- The version of the plugin: -- The version of the plugin:
VERSION = "1.0.0" VERSION = "1.0.0"
-- The type of the plugin: -- The type of the plugin:
TYPE = "LANGUAGE" TYPE = "ASSISTANT"
-- The authors of the plugin: -- The authors of the plugin:
AUTHORS = {"MindWork AI Community"} AUTHORS = {"<Company Name>"}
-- The support contact for the plugin: -- The support contact for the plugin:
SUPPORT_CONTACT = "MindWork AI Community" SUPPORT_CONTACT = "<IT Department of Company Name>"
-- The source URL for the plugin: -- The source URL for the plugin:
SOURCE_URL = "https://github.com/MindWorkAI/AI-Studio" SOURCE_URL = "<Any internal Git repository>"
-- The categories for the plugin: -- The categories for the plugin:
CATEGORIES = { "ASSISTANT" } CATEGORIES = { "CORE" }
-- The target groups for the plugin: -- The target groups for the plugin:
TARGET_GROUPS = { "EVERYONE" } TARGET_GROUPS = { "EVERYONE" }
@ -39,6 +44,16 @@ IS_MAINTAINED = true
-- When the plugin is deprecated, this message will be shown to users: -- When the plugin is deprecated, this message will be shown to users:
DEPRECATION_MESSAGE = "" DEPRECATION_MESSAGE = ""
ASSISTANT = {
["Title"] = "<Title of your assistant>",
["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 = { ASSISTANT = {
["Title"] = "Grammatik- und Rechtschreibprüfung", ["Title"] = "Grammatik- und Rechtschreibprüfung",
["Description"] = "Grammatik und Rechtschreibung eines Textes überprüfen.", ["Description"] = "Grammatik und Rechtschreibung eines Textes überprüfen.",