Validation
Validation runs before and after every agent action. Pre-execution validation ensures the action is safe to run. Post-execution validation ensures the result is correct before being used.
6 min•By Priygop Team•Updated 2026
Pre and Post Validation
- Pre-execution: validate tool arguments, check permissions, verify state preconditions
- Post-execution: verify the result format matches expectations, check for error fields, validate data ranges
- State preconditions: before issuing a refund, verify the order exists and is eligible
- State postconditions: after updating a record, verify the change was applied correctly
- Confidence threshold: if the agent is uncertain, require a higher bar before executing write actions
Key Takeaways
- Validation runs before and after every agent action.
- Pre-execution: validate tool arguments, check permissions, verify state preconditions
- Post-execution: verify the result format matches expectations, check for error fields, validate data ranges
- State preconditions: before issuing a refund, verify the order exists and is eligible