Skip to main content

Execution

The execution layer runs the LLM calls and the data transformations, and it makes the validated outputs. Your workflow configuration controls the execution layer.

Core Configuration​

SettingPurposeOptions
run_modeThe processing strategyonline (real-time), batch (lower cost)
granularityThe processing scoperecord (one record at a time), file (all records together)
guardConditional executionSkip or filter, based on the data
retryError handlingAutomatic retry for transient failures
versionsParallel variationsMany iterations with different parameters

Quick Reference​

NeedConfiguration
Lower costs, and you can wait for the resultsrun_mode: batch
Immediate responsesrun_mode: online
A transformation for each recordgranularity: record
Aggregation or exportsgranularity: file
Conditional executionguard: { condition: "...", on_false: filter }
Transient failuresretry: { max_attempts: 3, on_exhausted: return_last }

Schema Analysis​

To analyze the workflow schemas and the field dependencies before you make API calls, run this command:

bash
BASH
agac schema -w my_workflow

The command shows the input schema and the output schema of each action. It helps you find field reference errors.

See Also​