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. Represents 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. Represents the timestamp when this Memory Revision was created.
expireTimestring (google-datetime)Output only. Represents the timestamp of when this resource is considered expired.
extractedMemoriesarrayOutput only. Represents 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. Represents the fact of the Memory Revision. This corresponds to the fact field of the parent Memory at the time of revision creation.
labelsobjectOutput only. Represents the labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels.
structuredDataobjectOutput only. Represents the structured value of the memory at the time of revision creation.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, memoryBanksId, memoriesId, revisionsIdGet a Memory Revision.
listselectprojectsId, locationsId, memoryBanksId, 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
memoryBanksIdstring
projectsIdstring
revisionsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

Get a Memory Revision.

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