Interface MemoryListSummary.Builder

  • Method Details

    • memoryId

      MemoryListSummary.Builder memoryId(String memoryId)

      The memory's ID, assigned by the service. IDs are opaque, can contain hyphens and underscores, and can be up to 512 characters long.

      Parameters:
      memoryId - The memory's ID, assigned by the service. IDs are opaque, can contain hyphens and underscores, and can be up to 512 characters long.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryType

      MemoryListSummary.Builder memoryType(String memoryType)

      The memory type.

      Parameters:
      memoryType - The memory type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • memoryType

      MemoryListSummary.Builder memoryType(MemoryType memoryType)

      The memory type.

      Parameters:
      memoryType - The memory type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • strategyName

      MemoryListSummary.Builder strategyName(String strategyName)

      The name of the strategy the memory belongs to, for example user-facts: the strategy memoryStrategies selects on in ListMemories. Absent when the memory's strategy is no longer declared on the space, for example right after the strategy is deleted.

      Parameters:
      strategyName - The name of the strategy the memory belongs to, for example user-facts: the strategy memoryStrategies selects on in ListMemories. Absent when the memory's strategy is no longer declared on the space, for example right after the strategy is deleted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • systemMetadata

      MemoryListSummary.Builder systemMetadata(SystemMetadata systemMetadata)

      Provenance for the memory: the owning actor and session, and when it was created and last updated. Always present, with both timestamps.

      Parameters:
      systemMetadata - Provenance for the memory: the owning actor and session, and when it was created and last updated. Always present, with both timestamps.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • systemMetadata

      default MemoryListSummary.Builder systemMetadata(Consumer<SystemMetadata.Builder> systemMetadata)

      Provenance for the memory: the owning actor and session, and when it was created and last updated. Always present, with both timestamps.

      This is a convenience method that creates an instance of the SystemMetadata.Builder avoiding the need to create one manually via SystemMetadata.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to systemMetadata(SystemMetadata).

      Parameters:
      systemMetadata - a consumer that will call methods on SystemMetadata.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • metadata

      The memory's metadata tags. All values are strings.

      Parameters:
      metadata - The memory's metadata tags. All values are strings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.