Gardens will soon contain Modal Functions in addition to Entrypoints. The SDK will need to be able to parse these new entities and allow them to be called as functions.
Actually invoking the Modal Functions will depend on a POST /modal-function-invocations backend endpoint. So it might make sense for this PR to just add the Pydantic schema and the function invocation can be a no-op.
Assumptions:
1.
2.
Acceptance Criteria
~Given I am logged in with the SDK, when I fetch a garden that has Modal Functions, then the garden SDK object will have all the modal functions available and callable.~ (now #537)
Given a ModalFunctionMetadata with the real name of a modal app / function + a ModalFunction object with that metadata, the ModalFunction object is callable and hits the backend POST /modal-function-invocations route.
Gardens will soon contain Modal Functions in addition to Entrypoints. The SDK will need to be able to parse these new entities and allow them to be called as functions.
Actually invoking the Modal Functions will depend on a POST /modal-function-invocations backend endpoint. So it might make sense for this PR to just add the Pydantic schema and the function invocation can be a no-op.
Assumptions:
1. 2.
Acceptance Criteria
~Given I am logged in with the SDK, when I fetch a garden that has Modal Functions, then the garden SDK object will have all the modal functions available and callable.~ (now #537)
Given a
ModalFunctionMetadata
with the real name of a modal app / function + aModalFunction
object with that metadata, theModalFunction
object is callable and hits the backendPOST /modal-function-invocations
route.