set

suspend fun <T : Any> set(key: AIAgentStorageKey<T>, value: T)(source)

Sets the value associated with the given key in the storage.

Parameters

key

The key of type AIAgentStorageKey used to identify the value in the storage.

value

The value to be associated with the key.