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] Prompt studio: Removed highlight support for enforce type JSON (#1056)
jagadeeswaran-zipstack91e4c6c66a97
diff --git a/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx b/frontend/src/components/custom-tools/prompt-card/PromptCard.jsxindex 794a450cc..8bccb5607 100644--- a/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx+++ b/frontend/src/components/custom-tools/prompt-card/PromptCard.jsx@@ -171,7 +171,10 @@ const PromptCard = memo(highlightedPrompt,highlightedProfile) => {- if (details?.enable_highlight) {+ if (+ details?.enable_highlight &&+ promptDetailsState?.enforce_type !== "json"+ ) {updateCustomTool({selectedHighlight: {highlight: highlightData,diff --git a/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsx b/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsxindex 70580f192..e0d27c58c 100644--- a/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsx+++ b/frontend/src/components/custom-tools/prompt-card/PromptOutput.jsx@@ -84,7 +84,6 @@ function PromptOutput({const { generatePromptOutputKey } = usePromptOutput();const isTableExtraction =enforceType === TABLE_ENFORCE_TYPE || enforceType === RECORD_ENFORCE_TYPE;-const tooltipContent = (adapterConf) => (<div>{Object.entries(adapterConf)?.map(([key, value]) => (@@ -205,13 +204,18 @@ function PromptOutput({transition={{ duration: 0.5, ease: "linear" }}className={`prompt-card-llm ${details?.enable_highlight &&+ enforceType !== "json" &&selectedHighlight?.highlightedPrompt === promptId &&selectedHighlight?.highlightedProfile === profileId &&"highlighted-prompt-cell"}`}><Tooltip- title={details?.enable_highlight && "Click to highlight"}+ title={+ details?.enable_highlight && enforceType !== "json"+ ? "Click to highlight"+ : "Highlighting is not supported when enforce type is JSON"+ }><Colkey={profileId}