Outcomes
If Averta returns a decision that does not fit the checkpoint, the SDK treats it as an invalid decision response and throws. That is fail-closed behavior, not a recoverable warning.
Response Fields
JavaScript SDK decision objects use camelCase. Python SDK decision objects and the raw API use snake_case.Handling Blocks
Blocked checkpoints throwAvertaSdkError.
checkpointDecision in JavaScript or checkpoint_decision in Python contains the decision payload that caused the block.
Decision Callbacks
Provider wrappers callonDecision after checkpoint decisions. Use it while integrating and when building internal logs.
Rewrite Rules
Output rewrite is intentionally bounded. The wrapper:- checks original final text with
rewriteAttempt: 0 - asks the provider for a safer answer when Averta returns
rewrite - checks the rewritten text with
rewriteAttempt: 1 - returns the rewritten result only if the second check is
allow