Jido.Flow.Compiled (Jido Action v3.0.0-beta.12)

View Source

Derived Runic compilation data for one canonical Flow.

Use Jido.Flow.compile/2 to create this value. The workflow field is the native Runic.Workflow. The other fields connect authored components, source locations, output data, and deterministic compilation identity to that workflow. work_index is internal compiler metadata for step-wise descriptions. This value is not authoring or stored data.

Summary

Types

source_location()

@type source_location() :: %{
  optional(:file) => String.t(),
  optional(:line) => pos_integer(),
  optional(:column) => pos_integer()
}

source_map()

@type source_map() :: %{optional(source_path()) => source_location()}

source_path()

@type source_path() :: [String.t() | atom() | non_neg_integer()]

t()

@type t() :: %Jido.Flow.Compiled{
  compilation_digest: binary(),
  component_index: map(),
  output: Jido.Flow.Expression.t(),
  semantic_digest: binary(),
  source_map: source_map(),
  work_index: map(),
  workflow: Runic.Workflow.t()
}