Changed evaluator block

This commit is contained in:
Emir Karabeg
2025-02-10 14:39:15 -08:00
parent bb5ca1ad74
commit 85b35eacdf
2 changed files with 11 additions and 20 deletions
+10 -19
View File
@@ -102,7 +102,7 @@ export const EvaluatorBlock: BlockConfig<EvaluatorResponse> = {
toolbar: {
title: 'Evaluator',
description: 'Add an evaluator',
bgColor: '#FF69B4',
bgColor: '#2FA1FF',
icon: ChartBarIcon,
category: 'blocks',
},
@@ -150,10 +150,17 @@ export const EvaluatorBlock: BlockConfig<EvaluatorResponse> = {
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<EvaluatorResponse> = {
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<EvaluatorResponse> = {
value: (params: Record<string, any>) => {
return generateEvaluatorPrompt(params.prompt || '', {
id: 'runtime-evaluation',
expectedOutput: params.expectedOutput,
actualOutput: params.actualOutput,
})
},
},
+1 -1
View File
@@ -7,7 +7,7 @@ export const GmailBlock: BlockConfig<GmailToolResponse> = {
toolbar: {
title: 'Gmail',
description: 'Send, read, and search Gmail messages',
bgColor: '#EA4335', // Gmail red color
bgColor: '#F14537',
icon: GmailIcon,
category: 'tools',
},