mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
Completed subblock state for all except table and code
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user