Jido.Flow.Choice.Option (Jido Action v3.0.0-beta.12)

View Source

One ordered Choice condition and Action.

Summary

Functions

Builds and validates one Choice option.

Builds one Choice option or raises its validation error.

Types

t()

@type t() :: %Jido.Flow.Choice.Option{
  action: atom(),
  condition: any(),
  name: binary(),
  params: any()
}

Functions

new(option)

@spec new(t() | map() | keyword()) :: {:ok, t()} | {:error, Exception.t()}

Builds and validates one Choice option.

new!(attrs)

@spec new!(t() | map() | keyword()) :: t() | no_return()

Builds one Choice option or raises its validation error.