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 if the input data cannot be parsed to form a valid model.

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:
Return type:

None

get_final_response() str[source]#

Return the final response based on steps taken.

Return type:

str

get_steps() List[Tuple[Step, StepResponse]][source]#
Return type:

List[Tuple[Step, StepResponse]]