Pass existing schema as context to data schema generation prompt (#SKY-7484) (#4766)

This commit is contained in:
Celal Zamanoğlu
2026-02-17 21:22:56 +03:00
committed by GitHub
parent 095ef114c4
commit aacc612365
5 changed files with 110 additions and 14 deletions

View File

@@ -95,7 +95,7 @@ function FileParserNode({ id, data }: NodeProps<FileParserNode>) {
onChange={(value) => {
update({ jsonSchema: value });
}}
suggestionContext={{}}
suggestionContext={{ current_schema: data.jsonSchema }}
/>
<ModelSelector
className="nopan w-52 text-xs"

View File

@@ -94,7 +94,7 @@ function PDFParserNode({ id, data }: NodeProps<PDFParserNode>) {
onChange={(value) => {
update({ jsonSchema: value });
}}
suggestionContext={{}}
suggestionContext={{ current_schema: data.jsonSchema }}
/>
<ModelSelector
className="nopan w-52 text-xs"

View File

@@ -106,7 +106,7 @@ function TextPromptNode({ id, data }: NodeProps<TextPromptNode>) {
onChange={(value) => {
update({ jsonSchema: value });
}}
suggestionContext={{}}
suggestionContext={{ current_schema: data.jsonSchema }}
/>
</div>
</div>