ActivatedRail#
- class nemo_microservices.types.ActivatedRail(*args: Any, **kwargs: Any)
Bases:
BaseModel- name: str
The name of the rail, i.e., the name of the flow implementing the rail.
- type: str
The type of the rail that was activated, e.g., input, output, dialog.
- additional_info: object | None = None
Additional information coming from rail.
- decisions: List[str] | None = None
A sequence of decisions made by the rail, e.g., ‘bot refuse to respond’, ‘stop’, ‘continue’.
- duration: float | None = None
The duration in seconds for applying the rail.
Some rails are applied instantly, e.g., dialog rails, so they don’t have a duration.
- executed_actions: List[ExecutedAction] | None = None
The list of actions executed by the rail.
- finished_at: float | None = None
Timestamp for when the rail finished.
- started_at: float | None = None
Timestamp for when the rail started.
- stop: bool | None = None
Whether the rail decided to stop any further processing.