Jido.Composer.Node.ActionNode (Jido Composer v0.4.0)

Copy Markdown View Source

Wraps a Jido.Action module as a Node.

ActionNode is a thin adapter — it delegates execution to the action module via Jido.Exec.run/2 and metadata to the action's name/0, description/0, and schema/0 callbacks.

ActionNode returns raw results. Scoping (storing results under a namespace key) is the responsibility of the composition layer (Machine/Strategy), not the node.

Summary

Types

t()

@type t() :: %Jido.Composer.Node.ActionNode{action_module: module(), opts: keyword()}

Functions

new(action_module, opts \\ [])

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