> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# Globals

Globals provided by the orchestrator, available without loading a module.

## Members

* [cluster_id](#cluster_id)
* [datacenter_id](#datacenter_id)
* [err](#err)
* [help](#help)
* [ok](#ok)
* [param](#param)
* [print](#print)
* [register_workflow](#register_workflow)
* [result](#result)
* [sha256](#sha256)
* [sleep](#sleep)
* [struct](#struct)
* [tenant_id](#tenant_id)
* [tenant_uuid](#tenant_uuid)

## cluster_id

Get the cluster ID.

The cluster ID.

## datacenter_id

Get the datacenter ID.

The datacenter ID.

## err

Creates an error Result value.

The error value.

An error Result value.

## help

Shows documentation for modules and functions. Call with no arguments to list all modules, or pass a module/function to see its details.

A module, function, or string name to get help for

Formatted help text

## ok

Creates a successful Result value.

The success value.

A successful Result value.

## param

Retrieves a parameter value passed to an agent tool. Only available during agent tool execution context.

The module name to look up the parameter in

The parameter key within the module

The parameter value converted to a Starlark type

## print

Print a message to the Temporal UI.

The message to print.

## register_workflow

Register a workflow.

The Starlark function to register as a workflow. The function must have a docstring with argument and return types.

The Starlark function used to generate a logical, tenant-local workflow execution ID. This should accept the same arguments as the workflow function. Tenant prefixes are applied by Remediation Orchestrator and must not be returned by this function.

The Starlark function to call if the workflow fails. This should accept the same arguments as the workflow function. An additional argument, `errors` of type `list[string]` or `string` can be specified for the error history to be passed in.

The Starlark function to call if the workflow is canceled. This should accept the same arguments as the workflow function.

The Starlark function to call to query the workflow. This should accept the same arguments as the workflow function.

The maximum number of concurrent workflow executions. Defaults to infinite. This is best-effort enforced due to Temporal Count queries lack of strong consistency.

DEPRECATED: Circuit breakers are now managed through the web UI, not during registration

The workflow object.

## result

Creates a Result value with optional value and error fields.

The success value.

The error value.

A Result value.

## sha256

Compute SHA256 hash of a string.

The string to hash.

The SHA256 hash.

## sleep

Sleep for a given duration.

The duration to sleep.

## struct

Creates an immutable struct with the given keyword arguments as fields. Fields are accessible as attributes.

Keyword arguments that become the struct's fields

An immutable struct with the given fields

## tenant_id

Get the current workflow's human-readable tenant ID.

The human-readable tenant ID.

## tenant_uuid

Get the current workflow's canonical tenant UUID.

The canonical tenant UUID.