AttractorEx.Node (attractor_phoenix v0.1.0)

Copy Markdown View Source

Runtime representation of a pipeline node.

Nodes keep the original attribute map and the normalized fields that drive execution, such as shape, handler type, prompt, goal-gate status, and retry targets.

Summary

Functions

Returns the default handler type implied by a Graphviz shape.

Types

t()

@type t() :: %AttractorEx.Node{
  attrs: map(),
  fallback_retry_target: String.t() | nil,
  goal_gate: boolean(),
  id: String.t(),
  prompt: String.t(),
  retry_target: String.t() | nil,
  shape: String.t(),
  type: String.t()
}

Functions

handler_type_for_shape(shape)

Returns the default handler type implied by a Graphviz shape.

new(id, attrs)