Use the smallest namespace that fits the operation. Platform state and external I/O belong to api or storage; pure transformation belongs to util; reusable domain behavior is addressed through lib.Category.Name.ElementKey.X.
Use the generated Low-code runtime reference when you need an exact signature or editor-provided example. It is organized by api, storage, agent, and util, and is synchronized from the declaration source that feeds Monaco.
Context and control
Use api.getExecutionId() to correlate the current execution with traces, logs, and operations history.
Nested execution
Nested calls are bounded and inherit the caller’s execution deadline. Use a library rather than a nested component when you only need shared in-process business logic.
Utilities
Agents
The agent namespace exposes Agent, run, inbox, plugin, and Assistant-thread operations to approved runtime code. Exact operations and authorization are shown in the generated editor declarations and Platform API reference.
A runtime method appearing in editor types does not bypass role, instance, approval, or policy enforcement. Treat generated types as a callable contract, not a permission grant.