The do table.
Generated from the language definition for language 1.0.
Effects
Every do verb has a row; a verb without one is a compile error. A statement-shaped verb carries a DAL statement as its payload; the others take the arguments the grammar lists. do raw { … } writes an action or a binding verbatim.
| Verb | Compiles to | Payload |
|---|---|---|
append | transitions[].actions[] with action type DAL_EXEC | a DAL statement |
update | transitions[].actions[] with action type DAL_EXEC | a DAL statement |
delete | transitions[].actions[] with action type DAL_EXEC | a DAL statement |
transition | transitions[].actions[] with action type DAL_EXEC | a DAL statement |
spawn | transitions[].actions[] with action type BATCH_SPAWN | arguments |
webhook | transitions[].actions[] with action type WEBHOOK | arguments |
run | transitions[].actions[] with action type WASM_EXECUTE | arguments |
algorithm | transitions[].actions[] with action type ALGORITHM_EXECUTE | arguments |
recompute | transitions[].actions[] with action type ROLLUP_RECOMPUTE | arguments |
notify | primitive_bindings[] for fastyoke.notifier | arguments |
schedule | primitive_bindings[] for fastyoke.scheduler | arguments |
infer | transitions[].actions[] with action type INFER | arguments |
classify | transitions[].actions[] with action type INFER | arguments |
extract | transitions[].actions[] with action type INFER | arguments |
summarize | transitions[].actions[] with action type INFER | arguments |
classify, extract, and summarize compile to the same INFER action as infer. The name after the verb is the capability. The prompt is not in the workflow. do infer "…" is the form that carries a prompt string.
- Engine action types in the outbox today:
UPDATE_ENTITY,BATCH_SPAWN,ALGORITHM_EXECUTE,WASM_EXECUTE,WEBHOOK,INVENTORY_RECEIPT - Action types the language introduces:
DAL_EXEC,ROLLUP_RECOMPUTE,LEDGER_APPEND,INFER - Registered primitives:
fastyoke.notifier,fastyoke.scheduler,fastyoke.cross_entity_transition,fastyoke.record_spawner,fastyoke.field_mutator,fastyoke.field_compute,fastyoke.aggregator