set_global_data
set_global_data
Merge data into the global data dictionary available to the AI throughout the conversation. This method merges rather than replaces, so multiple callers (skills, dynamic config callbacks, etc.) can each contribute keys without overwriting each other.
This method is thread-safe. Concurrent calls from different threads or async contexts are serialized via an internal lock.
Parameters
data
Dictionary of key/value pairs to merge into global data. Values can be any JSON-serializable type.
Returns
AgentBase — Returns self for method chaining.