Jidoka.Review.Request (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Application-facing request for human review of an interrupted operation.

Summary

Types

t()

@type t() :: %Jidoka.Review.Request{
  agent_id: binary(),
  arguments: map(),
  boundary: :operation | binary(),
  created_at_ms: nil | nil | integer(),
  expires_at_ms: nil | nil | integer(),
  id: binary(),
  interrupt_id: binary(),
  metadata: map(),
  operation: binary(),
  reason: any(),
  request_id: binary()
}

Functions

from_input(request)

@spec from_input(t() | keyword() | map()) :: {:ok, t()} | {:error, term()}

from_interrupt(interrupt)

@spec from_interrupt(Jidoka.Review.Interrupt.t()) :: {:ok, t()} | {:error, term()}

from_interrupt!(interrupt)

@spec from_interrupt!(Jidoka.Review.Interrupt.t()) :: t()

new(attrs)

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

new!(attrs)

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

schema()

@spec schema() :: Zoi.schema()