get

abstract fun <T> get(key: AIAgentStorageKey<*>): T?(source)

Retrieves data from the agent's storage using the specified key.

Return

The data associated with the provided key, or null if no matching data is found.

Parameters

key

A uniquely identifying key of type AIAgentStorageKey used to fetch the corresponding data.