Jidoka.Adapter.Jido.Actions (Jidoka v0.9.0)

Copy Markdown View Source

Runtime support for executing Jido actions as Jidoka operations.

This is an advanced extension seam. A DSL agent installs the capability for its declared actions automatically. Call this module only when runtime data supplies the action list.

Jido actions are the canonical tool implementation for Jidoka. This module converts action modules into Agent.Spec.Operation data and builds the operation function used by the effect interpreter.

Summary

Functions

Converts a single Jido action module into a Jidoka operation spec.

Builds a Jidoka operation function backed by Jido actions.

Converts Jido action modules into Jidoka operation specs.

Types

action_module()

@type action_module() :: module()

Functions

operation_from_action!(action)

@spec operation_from_action!(action_module()) :: Jidoka.Agent.Spec.Operation.t()

Converts a single Jido action module into a Jidoka operation spec.

operations(actions, opts \\ [])

@spec operations(
  [action_module()],
  keyword()
) :: Jidoka.Operation.Capability.t()

Builds a Jidoka operation function backed by Jido actions.

operations_from_actions(actions)

@spec operations_from_actions([action_module()]) :: [Jidoka.Agent.Spec.Operation.t()]

Converts Jido action modules into Jidoka operation specs.