Pass existing schema as context to data schema generation prompt (#SKY-7484) (#4766)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -106,7 +106,7 @@ function TextPromptNode({ id, data }: NodeProps<TextPromptNode>) {
|
||||
onChange={(value) => {
|
||||
update({ jsonSchema: value });
|
||||
}}
|
||||
suggestionContext={{}}
|
||||
suggestionContext={{ current_schema: data.jsonSchema }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user