Interface BetaManagedAgentsMemoryListItem.Visitor
-
- All Implemented Interfaces:
public interface BetaManagedAgentsMemoryListItem.Visitor<T extends Object>An interface that defines how to map each variant of BetaManagedAgentsMemoryListItem to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitMemory(BetaManagedAgentsMemory memory)A memoryobject: a single text document at a hierarchical path inside a memory store.abstract TvisitMemoryPrefix(BetaManagedAgentsMemoryPrefix memoryPrefix)A rolled-up directory marker returned by /en/api/beta/memory_stores/memories/list when depthis set.Tunknown(JsonValue json)Maps an unknown variant of BetaManagedAgentsMemoryListItem to a value of type T. -
-
Method Detail
-
visitMemory
abstract T visitMemory(BetaManagedAgentsMemory memory)
A
memoryobject: a single text document at a hierarchical path inside a memory store. Thecontentfield is populated whenview=fullandnullwhenview=basic; thecontent_size_bytesandcontent_sha256fields are always populated so sync clients can diff without fetching content. Memories are addressed by theirmem_...ID; the path is the create key and can be changed via update.
-
visitMemoryPrefix
abstract T visitMemoryPrefix(BetaManagedAgentsMemoryPrefix memoryPrefix)
A rolled-up directory marker returned by /en/api/beta/memory_stores/memories/list when
depthis set. Indicates that one or more memories exist deeper than the requested depth under this prefix. This is a list-time rollup, not a stored resource; it has no ID and no lifecycle. Each prefix counts toward the pagelimitand interleaves withmemoryitems in path order.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaManagedAgentsMemoryListItem to a value of type T.
An instance of BetaManagedAgentsMemoryListItem can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-