putAll

expect open suspend override fun putAll(map: Map<AIAgentStorageKey<*>, Any>)(source)

Adds all key-value pairs from the given map to the storage.

Parameters

map

A map containing keys of type AIAgentStorageKey and their associated values of type Any. The keys and values in the provided map will be added to the storage.


expect open suspend override fun putAll(other: AIAgentStorage)(source)

Puts the contents of the other storage instance into the current storage. This method combines key-value pairs from the specified storage with the current one. If a key exists in both storages, the value from the given storage will overwrite the existing value.

Parameters

other

The AIAgentStorage instance whose key-value pairs should be merged into the current storage.