ListStepContainer#
- class langchain_experimental.plan_and_execute.schema.ListStepContainer[source]#
Bases:
BaseStepContainer
Container for List of steps.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- param steps: List[Tuple[Step, StepResponse]] [Optional]#
The steps.
- add_step(step: Step, step_response: StepResponse) None [source]#
Add step and step response to the container.
- Parameters:
step (Step)
step_response (StepResponse)
- Return type:
None
- get_steps() List[Tuple[Step, StepResponse]] [source]#
- Return type:
List[Tuple[Step, StepResponse]]