AI agent instructions
AI agent instructions
function.run(**variables) in Python.
Pass { stream: false } to receive the backend’s JSON response without
live logs; execution still blocks until completion. Pass functionRunId
to execute a record returned by createRun(); otherwise a new run record
is created first, exactly like Python. Pass version to run a saved
version instead of the latest one. A failed execution throws
FailedToRunCloudFunctionError and a rejected one (the function raised an
ExpectedFunctionError) its subclass FunctionRunRejectedError, unless
raiseOnFailure is false; the wait is aborted with NotteTimeoutError after timeoutMs.
Parameters
JSON-serializable keyword arguments passed to the Python function’s
run entry point.Default:Log streaming, failure handling, runtime, run ID, version, and timeout settings.Default:
Returns
result. Disabling streaming still waits for completion.
Raises
- FailedToRunCloudFunctionError if execution fails and
raiseOnFailureis true. - FunctionRunRejectedError if the run is rejected and
raiseOnFailureis true. - NotteTimeoutError if the execution request exceeds
timeoutMs. - InvalidRequestError if the run options are invalid.