Skip to content

ErrorStrategy

Base classes

Name Children Inherits
StrEnum
enum
Enum where members are also (and must be) strings

⋔ Inheritance diagram

graph TD
  1721701939["chain.ErrorStrategy"]
  375580963["enum.StrEnum"]
  4275460044["builtins.str"]
  2751680898["builtins.object"]
  4125183869["enum.ReprEnum"]
  3466579666["enum.Enum"]
  375580963 --> 1721701939
  4275460044 --> 375580963
  2751680898 --> 4275460044
  4125183869 --> 375580963
  3466579666 --> 4125183869
  2751680898 --> 3466579666

🛈 DocStrings

Bases: StrEnum

Source code in src/llmling/core/chain.py
class ErrorStrategy(StrEnum):
    STOP = "stop"  # Stop pipeline on error
    SKIP = "skip"  # Skip failed step, continue with previous result
    DEFAULT = "default"  # Use provided default value
    RETRY = "retry"  # Retry the step

:fa-brands-github: Show source on GitHub