|
|
|
@ -48,6 +48,7 @@ const AgentPanel: FC<NodePanelProps<AgentNodeType>> = (props) => {
|
|
|
|
runInputData,
|
|
|
|
runInputData,
|
|
|
|
setRunInputData,
|
|
|
|
setRunInputData,
|
|
|
|
varInputs,
|
|
|
|
varInputs,
|
|
|
|
|
|
|
|
outputSchema,
|
|
|
|
} = useConfig(props.id, props.data)
|
|
|
|
} = useConfig(props.id, props.data)
|
|
|
|
const { t } = useTranslation()
|
|
|
|
const { t } = useTranslation()
|
|
|
|
const nodeInfo = useMemo(() => {
|
|
|
|
const nodeInfo = useMemo(() => {
|
|
|
|
@ -121,12 +122,12 @@ const AgentPanel: FC<NodePanelProps<AgentNodeType>> = (props) => {
|
|
|
|
type='Array[Object]'
|
|
|
|
type='Array[Object]'
|
|
|
|
description={t(`${i18nPrefix}.outputVars.json`)}
|
|
|
|
description={t(`${i18nPrefix}.outputVars.json`)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
{inputs.output_schema && Object.entries(inputs.output_schema).map(([name, schema]) => (
|
|
|
|
{outputSchema.map(({ name, type, description }) => (
|
|
|
|
<VarItem
|
|
|
|
<VarItem
|
|
|
|
key={name}
|
|
|
|
key={name}
|
|
|
|
name={name}
|
|
|
|
name={name}
|
|
|
|
type={schema.type}
|
|
|
|
type={type}
|
|
|
|
description={schema.description}
|
|
|
|
description={description}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
))}
|
|
|
|
))}
|
|
|
|
</OutputVars>
|
|
|
|
</OutputVars>
|
|
|
|
|