Skip to main content

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

NameTypeDescription
dataAddParameterModelA Pydantic model containing the x and y numeric values to be added

Returns

TypeDescription
AddResultModelA Pydantic model containing the sum of the input values stored in the result field