diff --git a/autogpt_platform/backend/backend/blocks/basic.py b/autogpt_platform/backend/backend/blocks/basic.py index 391d6b615a..4acbaf5a58 100644 --- a/autogpt_platform/backend/backend/blocks/basic.py +++ b/autogpt_platform/backend/backend/blocks/basic.py @@ -143,8 +143,11 @@ class AgentInputBlock(Block): """ class Input(BlockSchema): - value: Any = SchemaField(description="The value to be passed as input.") name: str = SchemaField(description="The name of the input.") + value: Any = SchemaField( + description="The value to be passed as input.", + default=None, + ) description: str = SchemaField( description="The description of the input.", default="", diff --git a/autogpt_platform/frontend/src/components/node-input-components.tsx b/autogpt_platform/frontend/src/components/node-input-components.tsx index f224337596..76ead37318 100644 --- a/autogpt_platform/frontend/src/components/node-input-components.tsx +++ b/autogpt_platform/frontend/src/components/node-input-components.tsx @@ -53,7 +53,6 @@ const NodeObjectInputTree: FC = ({ object ||= ("default" in schema ? schema.default : null) ?? {}; return (
- {displayName && {displayName}} {Object.entries(schema.properties).map(([propKey, propSchema]) => { const childKey = selfKey ? `${selfKey}.${propKey}` : propKey; @@ -507,7 +506,6 @@ const NodeArrayInput: FC<{ typeof errors[selfKey] === "string" ? errors[selfKey] : undefined; return (
- {displayName && {displayName}} {entries.map((entry: any, index: number) => { const entryKey = `${selfKey}_$_${index}`; const isConnected =