add
Calculate the sum of two given numbers and return the result. Solves simple arithmetic addition quickly.
Instructions
Perform addition of two numbers provided in the data object.
Args:
data (TwoNumberOperation): An object containing two numbers a and b
to be added.
Returns:
Dict[str, Any]: A dictionary containing the operation name ("add") and
the result of the addition if successful, or an error
message if an exception occurs.
Logs:
Logs the operation and result in the format:
"ADD | {data.a} + {data.b} = {result}"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||