revisions
Creates, updates, deletes, gets or lists a revisions resource.
Overview
| Name | revisions |
| Type | Resource |
| Id | google.aiplatform.revisions |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The resource name of the Memory Revision. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision} |
createTime | string (google-datetime) | Output only. Timestamp when this Memory Revision was created. |
expireTime | string (google-datetime) | Output only. Timestamp of when this resource is considered expired. |
extractedMemories | array | Output 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. |
fact | string | Output only. The fact of the Memory Revision. This corresponds to the fact field of the parent Memory at the time of revision creation. |
labels | object | Output only. The labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on GenerateMemoriesRequest.revision_labels. |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The resource name of the Memory Revision. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision} |
createTime | string (google-datetime) | Output only. Timestamp when this Memory Revision was created. |
expireTime | string (google-datetime) | Output only. Timestamp of when this resource is considered expired. |
extractedMemories | array | Output 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. |
fact | string | Output only. The fact of the Memory Revision. This corresponds to the fact field of the parent Memory at the time of revision creation. |
labels | object | Output 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, reasoningEnginesId, memoriesId, revisionsId | Get a Memory Revision. | |
list | select | projectsId, locationsId, reasoningEnginesId, memoriesId | filter, pageSize, pageToken | List 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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
memoriesId | string | |
projectsId | string | |
reasoningEnginesId | string | |
revisionsId | string | |
filter | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
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
;
List Memory Revisions for a Memory.
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 filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;