replaceGlobalData
Replace the entire global_data object available to the AI, discarding every
prior key. setGlobalData() and
updateGlobalData() merge into the existing object; this
method clears it first. A shallow copy of data is stored, so later changes to
your object don’t leak into the agent.
Parameters
data
The new global data object.
Returns
AgentBase — Returns this for method chaining.