Jidoka.Effect.Intent (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Data description of an external effect the runtime may interpret.

Summary

Types

kind()

@type kind() :: :llm | :operation

t()

@type t() :: %Jidoka.Effect.Intent{
  id: binary(),
  idempotency:
    (:pure | :idempotent | :dedupe | :reconcile | :unsafe_once) | binary(),
  idempotency_key: binary(),
  kind: (:llm | :operation) | binary(),
  metadata: map(),
  payload: map()
}

Functions

new(attrs)

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

new(kind, payload, opts \\ [])

@spec new(kind(), map(), keyword()) :: t()

new!(attrs)

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

schema()

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