Added the prompt guide to the settings of the Prompt Optimizer and to configuration plugins (#1165)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-05 14:27:58 +01:00
1 parent a3d38c5db4
commit 974244ae51
19 files changed
+290 -26

No files matched your search

@@ -1013,6 +1013,62 @@ CONFIG["SETTINGS"] = {}
-- CONFIG["SETTINGS"]["DataAssistantBuilder.PreselectedOtherOutputLanguage.AllowUserOverride"] = true
-- CONFIG["SETTINGS"]["DataAssistantBuilder.MinimumProviderConfidence.AllowUserOverride"] = true
-- Configure defaults for the Prompt Optimizer.
-- These settings need AI Studio v26.11.1 or newer; older versions ignore them.
-- Preselection must be enabled for the remaining Prompt Optimizer settings to take effect.
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectOptions"] = true
--
-- Configure the language of the optimized prompt.
-- Allowed values are: AS_IS, EN_US, EN_GB, ZH_CN, HI_IN, ES_ES, FR_FR, DE_DE, DE_CH, DE_AT,
-- JA_JP, RU_RU, OTHER
-- AS_IS keeps the language of the prompt the user enters.
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedTargetLanguage"] = "AS_IS"
--
-- Configure a free-form language, used only when PreselectedTargetLanguage is "OTHER".
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedOtherLanguage"] = ""
--
-- Configure the aspects the optimized prompt should emphasize, such as the structure of the
-- answer or constraints.
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedImportantAspects"] = ""
--
-- Configure the prompt guide of your organization. The Prompt Optimizer then optimizes prompts
-- along this guide instead of its default one, and it reads the current content of the file
-- whenever it opens. Lock it so that users cannot choose another guide in the assistant; lock
-- PreselectOptions as well, because the guide applies only while preselection is enabled.
-- An empty path stands for the default guide: locked, it makes everybody use the default guide.
--
-- The simplest way is to ship the guide with this plugin: put the file, e.g., a Markdown, PDF,
-- or Word document, next to this plugin.lua, or into a folder below it, and give its path
-- relative to this plugin.lua. The path must stay inside the plugin directory, i.e., no '..'
-- segments and no links pointing out of it. When the file is missing or the path is rejected,
-- AI Studio logs a warning, and this plugin does not manage the guide: users keep the one they
-- chose, or the default guide.
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedCustomPromptGuidePath"] = "Prompting-Guide.md"
--
-- An absolute path works as well. It must be readable on every machine, e.g., on a network
-- share or in a folder your software distribution fills; for Flatpak installations, it must
-- be readable inside the sandbox.
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedCustomPromptGuidePath"] = "C:\\Guides\\Prompting-Guide.md"
--
-- Configure the minimum provider confidence required to optimize prompts.
-- Allowed values are: NONE, UNTRUSTED, UNKNOWN, VERY_LOW, LOW, MODERATE, MEDIUM, HIGH
-- Providers below this level cannot be selected in the Prompt Optimizer. This minimum applies
-- only while preselection is enabled; the app-wide minimum confidence applies in any case.
-- CONFIG["SETTINGS"]["DataPromptOptimizer.MinimumProviderConfidence"] = "NONE"
--
-- Configure the preselected provider for optimizing prompts.
-- It must be one of the provider IDs defined in CONFIG["LLM_PROVIDERS"].
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedProvider"] = "00000000-0000-0000-0000-000000000000"
--
-- Allow users to change individual managed Prompt Optimizer defaults locally.
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectOptions.AllowUserOverride"] = true
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedTargetLanguage.AllowUserOverride"] = true
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedOtherLanguage.AllowUserOverride"] = true
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedImportantAspects.AllowUserOverride"] = true
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedCustomPromptGuidePath.AllowUserOverride"] = true
-- CONFIG["SETTINGS"]["DataPromptOptimizer.MinimumProviderConfidence.AllowUserOverride"] = true
-- CONFIG["SETTINGS"]["DataPromptOptimizer.PreselectedProvider.AllowUserOverride"] = true
-- Configure enterprise approvals for assistant plugins.
-- Each approval is matched only by the current SHA-256 hash over all Lua files
-- in the assistant plugin folder, in canonical sorted order.