diff --git a/app/w/components/workflow-block/sub-block/components/long-input.tsx b/app/w/components/workflow-block/sub-block/components/long-input.tsx index a7911a61d7..c4f6f5eae5 100644 --- a/app/w/components/workflow-block/sub-block/components/long-input.tsx +++ b/app/w/components/workflow-block/sub-block/components/long-input.tsx @@ -1,5 +1,20 @@ import { Textarea } from '@/components/ui/textarea' +import { useState } from 'react' -export function LongInput() { - return +interface LongInputProps { + placeholder?: string +} + +export function LongInput({ placeholder }: LongInputProps) { + const [value, setValue] = useState('') + + return ( + setValue(e.target.value)} + /> + ) } diff --git a/app/w/components/workflow-block/sub-block/components/short-input.tsx b/app/w/components/workflow-block/sub-block/components/short-input.tsx index 4358ce040f..e7f18751ac 100644 --- a/app/w/components/workflow-block/sub-block/components/short-input.tsx +++ b/app/w/components/workflow-block/sub-block/components/short-input.tsx @@ -12,7 +12,7 @@ export function ShortInput({ placeholder, password }: ShortInputProps) { return ( ) case 'long-input': - return + return case 'dropdown': return ( diff --git a/blocks/configs/agent.ts b/blocks/configs/agent.ts index 2f95fd568e..ce7dcada4a 100644 --- a/blocks/configs/agent.ts +++ b/blocks/configs/agent.ts @@ -24,11 +24,13 @@ export const AgentBlock: BlockConfig = { title: 'System Prompt', type: 'long-input', layout: 'full', + placeholder: 'Enter prompt', }, { title: 'Context', type: 'short-input', layout: 'full', + placeholder: 'Enter text', }, { title: 'Model', diff --git a/blocks/configs/api.ts b/blocks/configs/api.ts index 999e666f64..16a74e4989 100644 --- a/blocks/configs/api.ts +++ b/blocks/configs/api.ts @@ -26,6 +26,7 @@ export const ApiBlock: BlockConfig = { title: 'URL', type: 'short-input', layout: 'full', + placeholder: 'Enter URL', }, { title: 'Method',