MemoryEntry

data class MemoryEntry(val content: Content, val id: String? = null, val author: String? = null, val timestamp: String? = null, val customMetadata: Map<String, Any> = emptyMap())

Represents one memory entry in the Vertex AI Memory Bank.

Serializable because load_memory returns entries to the model through this serializer; the field names below are therefore the ones the model sees.

Constructors

Link copied to clipboard
constructor(content: Content, id: String? = null, author: String? = null, timestamp: String? = null, customMetadata: Map<String, Any> = emptyMap())

Types

Link copied to clipboard
class Builder

Fluent builder for MemoryEntry, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The author of the memory, or null if not set.

Link copied to clipboard

The main content of the memory.

Link copied to clipboard
@SerialName(value = "custom_metadata")
val customMetadata: Map<String, Any>

Optional key-value metadata associated with this memory. The map must be JSON serializable: load_memory returns it to the model as part of its tool result.

Link copied to clipboard
val id: String?

The unique identifier of the memory entry, or null if not yet persisted.

Link copied to clipboard

The timestamp when the original content of this memory happened, or null if not set. Preferred format is ISO 8601 format.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.