setGlobalData
Merge key-value pairs into the global_data object available to the AI
throughout the conversation. Matches Python’s set_global_data, which calls
.update() on the internal dict — existing keys are preserved; incoming keys
overwrite on collision. Skills and other callers can each contribute keys
without clobbering one another.
Despite the set prefix, this method merges rather than replaces. There is
no built-in “clear” method; construct a new agent if you need an empty
global_data object.
Parameters
data
Object of key/value pairs. Values can be any JSON-serializable type.
Returns
AgentBase — Returns this for method chaining.