mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 04:15:56 +08:00
fix: no json output vars in front-page tool (#5943)
This commit is contained in:
parent
4d9c22bfc6
commit
46eca01fa3
@ -377,6 +377,10 @@ export const TOOL_OUTPUT_STRUCT: Var[] = [
|
|||||||
variable: 'files',
|
variable: 'files',
|
||||||
type: VarType.arrayFile,
|
type: VarType.arrayFile,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
variable: 'json',
|
||||||
|
type: VarType.arrayObject,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
export const PARAMETER_EXTRACTOR_COMMON_STRUCT: Var[] = [
|
export const PARAMETER_EXTRACTOR_COMMON_STRUCT: Var[] = [
|
||||||
|
@ -131,6 +131,11 @@ const Panel: FC<NodePanelProps<ToolNodeType>> = ({
|
|||||||
type='Array[File]'
|
type='Array[File]'
|
||||||
description={t(`${i18nPrefix}.outputVars.files.title`)}
|
description={t(`${i18nPrefix}.outputVars.files.title`)}
|
||||||
/>
|
/>
|
||||||
|
<VarItem
|
||||||
|
name='json'
|
||||||
|
type='Array[Object]'
|
||||||
|
description={t(`${i18nPrefix}.outputVars.json`)}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
</OutputVars>
|
</OutputVars>
|
||||||
</div>
|
</div>
|
||||||
|
@ -396,6 +396,7 @@ const translation = {
|
|||||||
url: 'Image url',
|
url: 'Image url',
|
||||||
upload_file_id: 'Upload file id',
|
upload_file_id: 'Upload file id',
|
||||||
},
|
},
|
||||||
|
json: 'tool generated json',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
questionClassifiers: {
|
questionClassifiers: {
|
||||||
|
@ -396,6 +396,7 @@ const translation = {
|
|||||||
url: '图片链接',
|
url: '图片链接',
|
||||||
upload_file_id: '上传文件ID',
|
upload_file_id: '上传文件ID',
|
||||||
},
|
},
|
||||||
|
json: '工具生成的json',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
questionClassifiers: {
|
questionClassifiers: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user