diff --git a/blocks/blocks/evaluator.ts b/blocks/blocks/evaluator.ts index 5dd1e3b94c..90372b8f53 100644 --- a/blocks/blocks/evaluator.ts +++ b/blocks/blocks/evaluator.ts @@ -102,7 +102,7 @@ export const EvaluatorBlock: BlockConfig = { toolbar: { title: 'Evaluator', description: 'Add an evaluator', - bgColor: '#FF69B4', + bgColor: '#2FA1FF', icon: ChartBarIcon, category: 'blocks', }, @@ -150,10 +150,17 @@ export const EvaluatorBlock: BlockConfig = { subBlocks: [ { id: 'prompt', - title: 'Evaluation Prompt', + title: 'Evaluation Criteria', type: 'long-input', layout: 'full', - placeholder: 'Evaluate the output based on the following criteria...', + placeholder: 'Evaluate the input based on the following criteria...', + }, + { + id: 'content', + title: 'Content', + type: 'short-input', + layout: 'full', + placeholder: 'Enter the content to evaluate', }, { id: 'model', @@ -171,20 +178,6 @@ export const EvaluatorBlock: BlockConfig = { password: true, connectionDroppable: false, }, - { - id: 'expectedOutput', - title: 'Expected Output', - type: 'code', - layout: 'full', - placeholder: 'Enter the expected output (optional)', - }, - { - id: 'actualOutput', - title: 'Actual Output', - type: 'code', - layout: 'full', - placeholder: 'Enter the actual output to evaluate', - }, { id: 'systemPrompt', title: 'System Prompt', @@ -194,8 +187,6 @@ export const EvaluatorBlock: BlockConfig = { value: (params: Record) => { return generateEvaluatorPrompt(params.prompt || '', { id: 'runtime-evaluation', - expectedOutput: params.expectedOutput, - actualOutput: params.actualOutput, }) }, }, diff --git a/blocks/blocks/gmail.ts b/blocks/blocks/gmail.ts index 64aabfd64f..16970f55c5 100644 --- a/blocks/blocks/gmail.ts +++ b/blocks/blocks/gmail.ts @@ -7,7 +7,7 @@ export const GmailBlock: BlockConfig = { toolbar: { title: 'Gmail', description: 'Send, read, and search Gmail messages', - bgColor: '#EA4335', // Gmail red color + bgColor: '#F14537', icon: GmailIcon, category: 'tools', },