Skip to main content

portia.builder.loops

Types to support Loops.

LoopBlock Objects

class LoopBlock(BaseModel)

A loop block in the plan.

This object is used to track the position of steps in the loop tree, if one is present.

Arguments:

  • start_step_index - The index of the first step in the loop.
  • end_step_index - The index of the last step in the loop.

LoopStepType Objects

class LoopStepType(StrEnum)

The type of loop block.

LoopType Objects

class LoopType(StrEnum)

The type of loop.

LoopStepResult Objects

class LoopStepResult(BaseModel)

Output of a loop step.