add_pydantic
Add two numbers, but with parameters and results using Pydantic model serialization.
def add_pydantic(
data: AddParameterModel
) - > AddResultModel
Add two numbers, but with parameters and results using Pydantic model serialization.
Parameters
| Name | Type | Description |
|---|---|---|
| data | AddParameterModel | A Pydantic model containing the x and y numeric values to be added |
Returns
| Type | Description |
|---|---|
AddResultModel | A Pydantic model containing the sum of the input values stored in the result field |