Interface MemoryRecordSummary.Builder

All Superinterfaces:
Buildable, CopyableBuilder<MemoryRecordSummary.Builder,MemoryRecordSummary>, SdkBuilder<MemoryRecordSummary.Builder,MemoryRecordSummary>, SdkPojo
Enclosing class:
MemoryRecordSummary

@Mutable @NotThreadSafe public static interface MemoryRecordSummary.Builder extends SdkPojo, CopyableBuilder<MemoryRecordSummary.Builder,MemoryRecordSummary>
  • Method Details

    • memoryRecordId

      MemoryRecordSummary.Builder memoryRecordId(String memoryRecordId)

      The unique identifier of the memory record.

      Parameters:
      memoryRecordId - The unique identifier of the memory record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      The content of the memory record.

      Parameters:
      content - The content of the memory record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      The content of the memory record.

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

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

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

      MemoryRecordSummary.Builder memoryStrategyId(String memoryStrategyId)

      The identifier of the memory strategy associated with this record.

      Parameters:
      memoryStrategyId - The identifier of the memory strategy associated with this record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaces

      The namespaces associated with this memory record.

      Parameters:
      namespaces - The namespaces associated with this memory record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaces

      MemoryRecordSummary.Builder namespaces(String... namespaces)

      The namespaces associated with this memory record.

      Parameters:
      namespaces - The namespaces associated with this memory record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      MemoryRecordSummary.Builder createdAt(Instant createdAt)

      The timestamp when the memory record was created.

      Parameters:
      createdAt - The timestamp when the memory record was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • score

      The relevance score of the memory record when returned as part of a search result. Higher values indicate greater relevance to the search query.

      Parameters:
      score - The relevance score of the memory record when returned as part of a search result. Higher values indicate greater relevance to the search query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      A map of metadata key-value pairs associated with a memory record.

      Parameters:
      metadata - A map of metadata key-value pairs associated with a memory record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.