input_schema.py
file. This document explains both methods.
@inferless.request
decorator to define the required inputs. you need to inferless python clinet
is_aws
), you can set it using Optional
.str
, int
, bool
, float
, List
, etc., to define the expected data types.@inferless.response
decorator. This allows you to declare structured outputs in a more maintainable way.
is_aws
), you can set it using Optional
.str
, int
, bool
, float
, List
, etc., to define the expected data types.infer
function takes a request
object of type RequestObjects
as input.request
object.ResponseObjects
object with the output parameters.