Skip to main content

revisions

Creates, updates, deletes, gets or lists a revisions resource.

Overview

Namerevisions
TypeResource
Idgoogle.aiplatform.revisions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the Memory Revision. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}
createTimestring (google-datetime)Output only. Timestamp when this Memory Revision was created.
expireTimestring (google-datetime)Output only. Timestamp of when this resource is considered expired.
extractedMemoriesarrayOutput only. The extracted memories from the source content before consolidation when the memory was updated via GenerateMemories. This information was used to modify an existing Memory via Consolidation.
factstringOutput only. The fact of the Memory Revision. This corresponds to the fact field of the parent Memory at the time of revision creation.
labelsobjectOutput only. The labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, reasoningEnginesId, memoriesId, revisionsIdGet a Memory Revision.
listselectprojectsId, locationsId, reasoningEnginesId, memoriesIdfilter, pageSize, pageTokenList Memory Revisions for a Memory.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
memoriesIdstring
projectsIdstring
reasoningEnginesIdstring
revisionsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get a Memory Revision.

SELECT
name,
createTime,
expireTime,
extractedMemories,
fact,
labels
FROM google.aiplatform.revisions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND reasoningEnginesId = '{{ reasoningEnginesId }}' -- required
AND memoriesId = '{{ memoriesId }}' -- required
AND revisionsId = '{{ revisionsId }}' -- required
;