AI agent instructions
AI agent instructions
create_run() only if you need the run ID before
execution, then pass it as function_run_id. When function_run_id
is omitted, run() automatically creates a new run.
Omit runtime to use the saved function default. Pass runtime=“extended”
for longer cloud execution, or runtime=“standard” to override that default.
Use input_variables={"runtime": value} for script inputs whose names match
SDK options; these are merged with keyword inputs, rejecting duplicates.
Pass version to run a saved version of the function instead of the latest
one; for a run made with create_run(), pass version there instead.
With raise_on_failure (the default), a failed run raises
FailedToRunCloudFunctionError and a rejected run, where the function raised an
ExpectedFunctionError, raises its subclass FunctionRunRejectedError.
Make sure that the correct variables are provided based on the python file previously uploaded. Otherwise, the function will fail
Parameters
Returns
FunctionRunResponse