Skip to main content
from intuned_runtime import persistent_store

persistent_store: PersistentStore
A persistent key-value store that maintains data across different API executions. This allows you to share data between different runs of your Projects. Constraints:
  • Keys must be at least 1 character long
  • Keys cannot contain : (colon) or # (hash) characters
  • Data stored must be JSON-serializable

PersistentStore

class PersistentStore:
    async def get(self, key: str) -> Any: ...
    async def set(self, key: str, value: Any) -> None: ...
Methods

get

Parameters
key
str
required
The key to retrieve the value for. Must be at least 1 character long and cannot contain : or # characters.
ReturnsThe value associated with the key, or None if not found.Raises
  • ValueError: If the key is invalid (empty or contains forbidden characters)

set

Parameters
key
str
required
The key to set the value for. Must be at least 1 character long and cannot contain : or # characters.
value
Any
required
The value to store. Can be any JSON-serializable type (dict, list, str, int, float, bool, None).
ReturnsNoneRaises
  • ValueError: If the key is invalid (empty or contains forbidden characters)