toMap

suspend fun toMap(): Map<AIAgentStorageKey<*>, Any>(source)

Converts the storage to a map representation.

Return

A map containing all key-value pairs currently stored in the system, where keys are of type AIAgentStorageKey and values are of type Any.