You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the function signature for client and service functions is fixed:
Service functions must take str as input and return Dict.
Client functions must return an object of data generator type.
For service functions we can use the signature module and type check dynamically.
For client functions we're a bit more constrained atm - might have to make this more clear in the documentation.
Alternatively we may follow the principle that explicit = better and just have the users explicitly import the Pydantic models -> actually I think we should do this
The text was updated successfully, but these errors were encountered:
jenniferjiangkells
changed the title
Dynamically determine function signature and return types
Improve function signature and return type checking
Jun 6, 2024
jenniferjiangkells
changed the title
Improve function signature and return type checking
Clarify function signature and return type
Jun 10, 2024
Currently the function signature for client and service functions is fixed:
str
as input and returnDict
.For service functions we can use the
signature
module and type check dynamically.For client functions we're a bit more constrained atm - might have to make this more clear in the documentation.
Alternatively we may follow the principle that explicit = better and just have the users explicitly import the Pydantic models -> actually I think we should do this
The text was updated successfully, but these errors were encountered: