fix: have defaults for the table schema (#5099)
This commit is contained in:
parent
943bef1167
commit
fc4d93a33d
3 changed files with 6 additions and 3 deletions
|
|
@ -37,18 +37,20 @@ class StructuredOutputComponent(Component):
|
||||||
name="output_schema",
|
name="output_schema",
|
||||||
display_name="Output Schema",
|
display_name="Output Schema",
|
||||||
info="Define the structure and data types for the model's output.",
|
info="Define the structure and data types for the model's output.",
|
||||||
value=[
|
table_schema=[
|
||||||
{
|
{
|
||||||
"name": "name",
|
"name": "name",
|
||||||
"display_name": "Name",
|
"display_name": "Name",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"description": "Specify the name of the output field.",
|
"description": "Specify the name of the output field.",
|
||||||
|
"default": "field",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "description",
|
"name": "description",
|
||||||
"display_name": "Description",
|
"display_name": "Description",
|
||||||
"type": "str",
|
"type": "str",
|
||||||
"description": "Describe the purpose of the output field.",
|
"description": "Describe the purpose of the output field.",
|
||||||
|
"default": "description of field",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "type",
|
"name": "type",
|
||||||
|
|
@ -67,6 +69,7 @@ class StructuredOutputComponent(Component):
|
||||||
"default": "False",
|
"default": "False",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
value=[{"name": "field", "description": "description of field", "type": "text", "multiple": "False"}],
|
||||||
),
|
),
|
||||||
BoolInput(
|
BoolInput(
|
||||||
name="multiple",
|
name="multiple",
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue