Jidoka.Workflow.Lua (Jidoka v0.9.0)

Copy Markdown View Source

Sandboxed Lua authoring layer for dynamic Jidoka workflow plans.

Lua does not drive the core agent loop. It can author a bounded workflow plan by returning jidoka.workflow({...}); Jidoka validates that plan, executes allowed catalog actions through Runic, and returns structured results and call traces.

Summary

Functions

Executes a sandboxed Lua script with the jidoka.workflow/1 host function.

Functions

execute(script, opts \\ [])

@spec execute(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, term()}

Executes a sandboxed Lua script with the jidoka.workflow/1 host function.

Required options:

Common options:

  • :allowed_tools - selected catalog entry ids. Defaults to all provided entries.
  • :context - map passed to hidden actions.
  • :timeout - total Lua/workflow timeout in milliseconds.
  • :max_calls - maximum hidden action calls.
  • :max_parallel_calls - maximum concurrent hidden action calls.
  • :require_read_only? - defaults to true.