Skip to main content
Functions are saved in the notte console for easy access and versioning for users. This is a wrapper around RemoteWorkflow that uses function_id terminology

Methods

delete

delete() -> None
Delete the workflow from the notte console

download

download(workflow_path: str | None = None, version: str | None = None, decryption_key: str | None = None, path: str | None = None) -> str
Download the function code from the notte console as a python file Returns: str

fork

fork() -> 'NotteFunction'
Fork a shared function into your own private function Returns: NotteFunction

get_curl

get_curl(variables: Any) -> str
Convert the workflow/run to a curl request Returns: str

get_run

get_run(run_id: str) -> GetFunctionRunResponse
Get a function run by its ID Returns: GetFunctionRunResponse

get_url

get_url(version: str | None = None, decryption_key: str | None = None) -> str
Returns: str

replay

replay() -> MP4Replay
Replay the workflow run Returns: MP4Replay

run

run(version: str | None = None, local: bool = False, restricted: bool = True, timeout: int | None = None, stream: bool = True, raise_on_failure: bool = True, function_run_id: str | None = None, log_callback: Callable[[str], None] | None = None, variables: Any) -> FunctionRunResponse
Run the function code using the specified version and variables Returns: FunctionRunResponse

stop_run

stop_run(run_id: str) -> UpdateFunctionRunResponse
Manually stop a function run by its ID Returns: UpdateFunctionRunResponse

update

update(path: str | None = None, version: str | None = None, workflow_path: str | None = None, restricted: bool = True) -> None
Update the workflow with a a new code version

Inheritance

Inherits from: RemoteWorkflow

Module

notte_sdk.endpoints.functions