diff --git a/blocks/blocks/memory.ts b/blocks/blocks/input.ts similarity index 54% rename from blocks/blocks/memory.ts rename to blocks/blocks/input.ts index 6e6618ca4c..70b29605f9 100644 --- a/blocks/blocks/memory.ts +++ b/blocks/blocks/input.ts @@ -1,13 +1,13 @@ -import { BrainIcon } from '@/components/icons' +import { InputIcon } from '@/components/icons' import { BlockConfig } from '../types' -export const MemoryBlock: BlockConfig = { - type: 'memory', +export const InputBlock: BlockConfig = { + type: 'input', toolbar: { - title: 'Memory', - description: 'Add memory store', - bgColor: '#FF65BF', - icon: BrainIcon, + title: 'Input', + description: 'Add workflow input', + bgColor: '#2FB3FF', + icon: InputIcon, category: 'blocks', }, tools: { @@ -16,8 +16,6 @@ export const MemoryBlock: BlockConfig = { workflow: { inputs: { code: { type: 'string', required: true }, - timeout: { type: 'number', required: false }, - memoryLimit: { type: 'number', required: false }, }, outputs: { response: { @@ -30,8 +28,9 @@ export const MemoryBlock: BlockConfig = { }, subBlocks: [ { - id: 'code', - type: 'code', + title: 'Input', + id: 'input', + type: 'short-input', layout: 'full', }, ], diff --git a/blocks/index.ts b/blocks/index.ts index 791ab0e4fd..7808d47e68 100644 --- a/blocks/index.ts +++ b/blocks/index.ts @@ -9,7 +9,6 @@ import { FunctionBlock } from './blocks/function' import { GitHubBlock } from './blocks/github' import { GmailBlock } from './blocks/gmail' import { JinaBlock } from './blocks/jina' -import { MemoryBlock } from './blocks/memory' import { NotionBlock } from './blocks/notion' import { RouterBlock } from './blocks/router' import { SerperBlock } from './blocks/serper' @@ -40,7 +39,6 @@ export { NotionBlock, GmailBlock, XBlock, - MemoryBlock, } // Registry of all block configurations @@ -51,7 +49,6 @@ const blocks: Record = { function: FunctionBlock, router: RouterBlock, evaluator: EvaluatorBlock, - memory: MemoryBlock, crewai_vision: CrewAIVisionBlock, firecrawl_scrape: FirecrawlScrapeBlock, jina_reader: JinaBlock, diff --git a/components/icons.tsx b/components/icons.tsx index 92f41c96be..f6a72cc7a1 100644 --- a/components/icons.tsx +++ b/components/icons.tsx @@ -1352,3 +1352,21 @@ export function BrainIcon(props: SVGProps) { ) } + +export function InputIcon(props: SVGProps) { + return ( + + + + ) +}