add_equivalence_principle
Add equivalence principle validation to contract methods to handle non-deterministic operations with comparative or non-comparative checks and optional tolerance.
Instructions
Add Equivalence Principle validation to a contract method for handling non-deterministic operations
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contract_code": "<contract_code>",
"method_name": "<method_name>",
"validation_type": "<validation_type>"
},
"name": "add_equivalence_principle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_code | Yes | The existing contract code | |
| method_name | Yes | Name of the method to add validation to | |
| validation_type | Yes | Type of validation to apply | |
| tolerance | No | Tolerance level for validation (optional) |