LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
FIX: Missing tool setting enable_highlight (#843)
Deepak Kcf9c7d6f2540
diff --git a/backend/prompt_studio/prompt_studio_core_v2/constants.py b/backend/prompt_studio/prompt_studio_core_v2/constants.pyindex 5e6c47884..9838892f2 100644--- a/backend/prompt_studio/prompt_studio_core_v2/constants.py+++ b/backend/prompt_studio/prompt_studio_core_v2/constants.py@@ -94,6 +94,7 @@ class ToolStudioPromptKeys:SUMMARIZE_AS_SOURCE = "summarize_as_source"VARIABLE_MAP = "variable_map"RECORD = "record"+ ENABLE_HIGHLIGHT = "enable_highlight"class FileViewTypes:diff --git a/backend/prompt_studio/prompt_studio_core_v2/prompt_studio_helper.py b/backend/prompt_studio/prompt_studio_core_v2/prompt_studio_helper.pyindex e325488d9..aef8fc012 100644--- a/backend/prompt_studio/prompt_studio_core_v2/prompt_studio_helper.py+++ b/backend/prompt_studio/prompt_studio_core_v2/prompt_studio_helper.py@@ -810,6 +810,7 @@ class PromptStudioHelper:tool_settings[TSPKeys.PREAMBLE] = tool.preambletool_settings[TSPKeys.POSTAMBLE] = tool.postambletool_settings[TSPKeys.GRAMMAR] = grammar_list+ tool_settings[TSPKeys.ENABLE_HIGHLIGHT] = tool.enable_highlighttool_settings[TSPKeys.PLATFORM_POSTAMBLE] = getattr(settings, TSPKeys.PLATFORM_POSTAMBLE.upper(), "")@@ -1068,6 +1069,7 @@ class PromptStudioHelper:tool_settings[TSPKeys.CHUNK_SIZE] = default_profile.chunk_sizetool_settings[TSPKeys.CHUNK_OVERLAP] = default_profile.chunk_overlaptool_settings[TSPKeys.ENABLE_CHALLENGE] = tool.enable_challenge+ tool_settings[TSPKeys.ENABLE_HIGHLIGHT] = tool.enable_highlighttool_settings[TSPKeys.CHALLENGE_LLM] = challenge_llmfor prompt in prompts:diff --git a/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.py b/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.pyindex c323f068b..157593cdd 100644--- a/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.py+++ b/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.py@@ -73,6 +73,12 @@ class PromptStudioRegistryHelper:"default": False,"description": "Enables SinglePass Extraction",},+ "enable_highlight": {+ "type": "boolean",+ "title": "Enable highlight",+ "default": False,+ "description": "Enables highlight",+ },}spec = Spec(