Package-level declarations

Types

Link copied to clipboard

Policy controlling how failures from the underlying memory storage are handled by the LongTermMemory feature.

Link copied to clipboard
class LongTermMemory(retrievalSettings: RetrievalSettings? = null, ingestionSettings: IngestionSettings? = null)

Memory feature that incorporates persistent storage of memory records (documents) in vector databases.

Link copied to clipboard

Thrown when ingestion into the LongTermMemory storage fails and the configured FailurePolicy is FailurePolicy.FAIL_FAST.

Link copied to clipboard

Thrown when retrieval from the LongTermMemory storage fails and the configured FailurePolicy is FailurePolicy.FAIL_FAST.

Functions

Link copied to clipboard

Returns the LongTermMemory feature instance installed on this agent.

Link copied to clipboard
suspend fun <T> AIAgentContext.withLongTermMemory(action: suspend LongTermMemory.() -> T): T

Executes the given action in the context of the LongTermMemory feature installed on this agent.