op: decision

Invoke a compiled AI decision (external LLM call).

Allowed phases

PhaseStatus
preflight✗ forbidden
core✗ forbidden
side_effects✓ allowed

Syntax

- op: decision
  ref: triage_ticket
  input:
    ticket_id:   intent.ticket_id
    customer_id: intent.customer_id
    subject:     intent.subject
    body:        intent.body

Parameters

FieldRequiredDescription
refyesDecision name under decisions: in Product DSL
inputnoMap of decision input field → expression

Behavior

  • Side effects only. External LLM I/O is not replayed from the ledger.
  • Runtime validates input, retrieves vector memories, renders the prompt, calls the provider, validates JSON output, and emits the event declared on the decision (emits:).
  • Traced in the Decision Log. See Defining Decisions.

emit · submit

See also