Learn R Programming

aisdk (version 1.1.0)

sdk_protect_var: Protect a Variable from Agent Modification

Description

Marks a variable as protected so that the Agent cannot accidentally overwrite, shadow, or deeply copy it during sandbox execution.

Usage

sdk_protect_var(name, locked = TRUE, cost = "High")

Value

Invisible TRUE.

Arguments

name

Character string. The name of the variable to protect.

locked

Logical. If TRUE, the variable cannot be assigned to by the Agent.

cost

Character string. An indicator of the variable's computation/memory cost (e.g., "High", "Medium", "Low").