Close httplib2 connections.
Get a Memory Revision.
list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)
List Memory Revisions for a Memory.
Retrieves the next page of results.
close()
Close httplib2 connections.
get(name, x__xgafv=None)
Get a Memory Revision.
Args:
name: string, Required. The resource name of the Memory Revision to retrieve. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{revision}` (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A revision of a Memory.
"createTime": "A String", # Output only. Timestamp when this Memory Revision was created.
"expireTime": "A String", # Output only. Timestamp of when this resource is considered expired.
"extractedMemories": [ # 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.
{ # An extracted memory that is the intermediate result before consolidation.
"fact": "A String", # Output only. The fact of the extracted memory.
},
],
"fact": "A 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": { # Output only. The labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on `GenerateMemoriesRequest.revision_labels`.
"a_key": "A String",
},
"name": "A String", # Identifier. The resource name of the Memory Revision. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}`
}
list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)
List Memory Revisions for a Memory.
Args:
parent: string, Required. The resource name of the Memory to list revisions for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` (required)
filter: string, Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). Supported fields (equality match only): * `labels`
pageSize: integer, Optional. The standard list page size.
pageToken: string, Optional. The standard list page token.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for MemoryBankService.ListMemoryRevisions.
"memoryRevisions": [ # The list of Memory Revisions in the request page.
{ # A revision of a Memory.
"createTime": "A String", # Output only. Timestamp when this Memory Revision was created.
"expireTime": "A String", # Output only. Timestamp of when this resource is considered expired.
"extractedMemories": [ # 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.
{ # An extracted memory that is the intermediate result before consolidation.
"fact": "A String", # Output only. The fact of the extracted memory.
},
],
"fact": "A 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": { # Output only. The labels of the Memory Revision. These labels are applied to the MemoryRevision when it is created based on `GenerateMemoriesRequest.revision_labels`.
"a_key": "A String",
},
"name": "A String", # Identifier. The resource name of the Memory Revision. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}`
},
],
"nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
}
list_next()
Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call 'execute()' on to request the next
page. Returns None if there are no more items in the collection.