fix: have defaults for the table schema (#5099)

This commit is contained in:
Eric Hare 2024-12-12 10:33:15 -08:00 committed by GitHub
commit fc4d93a33d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View file

@ -37,18 +37,20 @@ class StructuredOutputComponent(Component):
name="output_schema",
display_name="Output Schema",
info="Define the structure and data types for the model's output.",
value=[
table_schema=[
{
"name": "name",
"display_name": "Name",
"type": "str",
"description": "Specify the name of the output field.",
"default": "field",
},
{
"name": "description",
"display_name": "Description",
"type": "str",
"description": "Describe the purpose of the output field.",
"default": "description of field",
},
{
"name": "type",
@ -67,6 +69,7 @@ class StructuredOutputComponent(Component):
"default": "False",
},
],
value=[{"name": "field", "description": "description of field", "type": "text", "multiple": "False"}],
),
BoolInput(
name="multiple",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long