update base class of ListStepContainer to BaseStepContainer (#6232)

update base class of ListStepContainer to BaseStepContainer

Fixes #6231
This commit is contained in:
lucasiscovici 2023-07-13 09:03:02 +02:00 committed by GitHub
parent 98e1bbfbbd
commit af3f401015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ class BaseStepContainer(BaseModel):
"""Return the final response based on steps taken.""" """Return the final response based on steps taken."""
class ListStepContainer(BaseModel): class ListStepContainer(BaseStepContainer):
steps: List[Tuple[Step, StepResponse]] = Field(default_factory=list) steps: List[Tuple[Step, StepResponse]] = Field(default_factory=list)
def add_step(self, step: Step, step_response: StepResponse) -> None: def add_step(self, step: Step, step_response: StepResponse) -> None: