- -
+ -
+
{{ toolAnswer }}
diff --git a/ui/src/workflow-canvas/nodes/reply-node/index.vue b/ui/src/workflow-canvas/nodes/reply-node/index.vue
index 981956f3884..8f31a079f27 100644
--- a/ui/src/workflow-canvas/nodes/reply-node/index.vue
+++ b/ui/src/workflow-canvas/nodes/reply-node/index.vue
@@ -17,7 +17,7 @@ const anchorGuard = createAnchorGuard(model)
onBeforeUnmount(() => anchorGuard.reset())
interface ReplyNodeForm {
content: string
- content_type: 'TEXT' | 'HTML' | 'TOOL'
+ content_type: 'TEXT' | 'HTML' | 'TOOL' | 'FILE'
fields: string[]
is_result: boolean
reply_type: 'content' | 'referencing'
@@ -52,6 +52,9 @@ const contentPlaceholder = computed(() => {
if (formData.value.content_type === 'TOOL') {
return JSON.stringify([{ id: 'call_1', name: 'get_weather', arguments: '{}', content: t('workflow.reply.format.toolExampleContent') }])
}
+ if (formData.value.content_type === 'FILE') {
+ return t('workflow.reply.content.filePlaceholder', { reference: START_NODE_REFERENCES.question })
+ }
if (formData.value.content_type === 'HTML') {
return `
${t('workflow.reply.content.htmlPlaceholder', { reference: START_NODE_REFERENCES.question })}
`
}
@@ -99,6 +102,14 @@ onMounted(() => {
+