Completed subblock state for all except table and code

This commit is contained in:
Emir Karabeg
2025-01-16 15:51:26 -08:00
parent 0313f24a83
commit 3f840bbf10
9 changed files with 37 additions and 18 deletions
+5
View File
@@ -23,24 +23,28 @@ export const AgentBlock: BlockConfig = {
},
subBlocks: [
{
id: 'systemPrompt',
title: 'System Prompt',
type: 'long-input',
layout: 'full',
placeholder: 'Enter prompt'
},
{
id: 'context',
title: 'Context',
type: 'short-input',
layout: 'full',
placeholder: 'Enter text',
},
{
id: 'model',
title: 'Model',
type: 'dropdown',
layout: 'half',
options: ['GPT-4o', 'Gemini 2.0', 'Claude 3.5 Sonnet', 'DeepSeek V3', 'Grok 2'],
},
{
id: 'temperature',
title: 'Temperature',
type: 'slider',
layout: 'half',
@@ -48,6 +52,7 @@ export const AgentBlock: BlockConfig = {
max: 2,
},
{
id: 'apiKey',
title: "API Key",
type: "short-input",
layout: "full",
+4
View File
@@ -14,24 +14,28 @@ export const ApiBlock: BlockConfig = {
outputType: 'json',
subBlocks: [
{
id: 'url',
title: 'URL',
type: 'short-input',
layout: 'full',
placeholder: 'Enter URL',
},
{
id: 'method',
title: 'Method',
type: 'dropdown',
layout: 'half',
options: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'],
},
{
id: 'headers',
title: 'Headers',
type: 'table',
layout: 'full',
columns: ['Key', 'Value'],
},
{
id: 'body',
title: 'Body',
type: 'code',
layout: 'full',
+2
View File
@@ -14,6 +14,7 @@ export const ConditionalBlock: BlockConfig = {
outputType: 'boolean',
subBlocks: [
{
id: 'conditionType',
title: 'Condition Type',
type: 'dropdown',
layout: 'full',
@@ -26,6 +27,7 @@ export const ConditionalBlock: BlockConfig = {
],
},
{
id: 'value',
title: 'Value',
type: 'short-input',
layout: 'full',
+1 -1
View File
@@ -10,7 +10,7 @@ export type SubBlockType = 'short-input' | 'long-input' | 'dropdown' | 'slider'
export type SubBlockLayout = 'full' | 'half'
export interface SubBlockConfig {
id?: string
id: string
title: string
type: SubBlockType
layout?: SubBlockLayout