Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(forge/db): Fix persistence of Step.additional_input and Step.additional_output

Reinier van der Leer8b27f2c47bac
diff --git a/autogpts/forge/forge/sdk/model.py b/autogpts/forge/forge/sdk/model.py
index 1dc2e25e05..238caae87e 100644
--- a/autogpts/forge/forge/sdk/model.py
+++ b/autogpts/forge/forge/sdk/model.py
@@ -113,7 +113,7 @@ class StepRequestBody(BaseModel):
description="Input prompt for the step.",
example="Washington",
)
- additional_input: Optional[dict] = {}
+ additional_input: Optional[dict] = None
class Status(Enum):
@@ -156,7 +156,7 @@ class Step(StepRequestBody):
description="Output of the task step.",
example="I am going to use the write_to_file command and write Washington to a file called output.txt <write_to_file('output.txt', 'Washington')",
)
- additional_output: Optional[StepOutput] = Field(default_factory=dict)
+ additional_output: Optional[dict] = None
artifacts: Optional[List[Artifact]] = Field(
[], description="A list of artifacts that the step has produced."
)