nemo_microservices.types.activated_rail#

Module Contents#

Classes#

API#

class nemo_microservices.types.activated_rail.ActivatedRail(/, **data: typing.Any)#

Bases: nemo_microservices._models.BaseModel

additional_info: Optional[Dict[str, object]]#

None

Additional information coming from rail.

decisions: Optional[List[str]]#

None

A sequence of decisions made by the rail, e.g., ‘bot refuse to respond’, ‘stop’, ‘continue’.

duration: Optional[float]#

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: Optional[List[nemo_microservices.types.executed_action.ExecutedAction]]#

None

The list of actions executed by the rail.

finished_at: Optional[float]#

None

Timestamp for when the rail finished.

name: str#

None

The name of the rail, i.e., the name of the flow implementing the rail.

started_at: Optional[float]#

None

Timestamp for when the rail started.

stop: Optional[bool]#

None

Whether the rail decided to stop any further processing.

type: str#

None

The type of the rail that was activated, e.g., input, output, dialog.