# Agent Platform API . projects . locations . memoryBanks . memories . revisions

## Instance Methods

Close httplib2 connections.

Get a Memory Revision.

List Memory Revisions for a Memory.

Retrieves the next page of results.

### Method Details

`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.
      "context": "A String", # Output only. Represents the context of the Memory Revision. The context may include context from both the historical revisions and the extracted content.
      "createTime": "A String", # Output only. Represents the timestamp when this Memory Revision was created.
      "expireTime": "A String", # Output only. Represents the timestamp of when this resource is considered expired.
      "extractedMemories": [ # Output 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.
        { # An extracted memory that is the intermediate result before consolidation.
          "context": "A String", # Output only. Represents the explanation of why the information was extracted from the source content.
          "fact": "A String", # Output only. Represents the fact of the extracted memory.
          "structuredData": { # Output only. Represents the structured value of the extracted memory.
            "a_key": "", # Properties of the object.
          },
        },
      ],
      "fact": "A String", # Output only. Represents 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. Represents 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. Represents the resource name of the Memory Revision. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}`
      "structuredData": { # Output only. Represents the structured value of the memory at the time of revision creation.
        "a_key": "", # Properties of the object.
      },
    }

`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.
          "context": "A String", # Output only. Represents the context of the Memory Revision. The context may include context from both the historical revisions and the extracted content.
          "createTime": "A String", # Output only. Represents the timestamp when this Memory Revision was created.
          "expireTime": "A String", # Output only. Represents the timestamp of when this resource is considered expired.
          "extractedMemories": [ # Output 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.
            { # An extracted memory that is the intermediate result before consolidation.
              "context": "A String", # Output only. Represents the explanation of why the information was extracted from the source content.
              "fact": "A String", # Output only. Represents the fact of the extracted memory.
              "structuredData": { # Output only. Represents the structured value of the extracted memory.
                "a_key": "", # Properties of the object.
              },
            },
          ],
          "fact": "A String", # Output only. Represents 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. Represents 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. Represents the resource name of the Memory Revision. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}`
          "structuredData": { # Output only. Represents the structured value of the memory at the time of revision creation.
            "a_key": "", # Properties of the object.
          },
        },
      ],
      "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(previous_request, previous_response)`

    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.