Jidoka.Operation.Source.Local (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Local operation source backed by Elixir functions.

This source is primarily for deterministic tests, examples, and lightweight in-process operations. It is deliberately normalized through the same operation contract as Jido actions.

Summary

Types

handler()

operation_def()

@type operation_def() :: %{
  :name => String.t(),
  :handler => handler(),
  optional(:description) => String.t(),
  optional(:idempotency) => Jidoka.Agent.Spec.Operation.idempotency(),
  optional(:kind) => atom(),
  optional(:metadata) => map()
}

t()

@type t() :: %Jidoka.Operation.Source.Local{operations: [operation_def()]}

Functions

new(attrs)

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

new!(attrs)

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