Interface SemanticMemoryStrategyInput.Builder

  • Method Details

    • name

      The name of the semantic memory strategy.

      Parameters:
      name - The name of the semantic memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      SemanticMemoryStrategyInput.Builder description(String description)

      The description of the semantic memory strategy.

      Parameters:
      description - The description of the semantic memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaces

      Deprecated.
      Use namespaceTemplates instead

      This is a legacy parameter, use namespaceTemplates. The namespaces associated with the semantic memory strategy.

      Parameters:
      namespaces - This is a legacy parameter, use namespaceTemplates. The namespaces associated with the semantic memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaces

      Deprecated.
      Use namespaceTemplates instead

      This is a legacy parameter, use namespaceTemplates. The namespaces associated with the semantic memory strategy.

      Parameters:
      namespaces - This is a legacy parameter, use namespaceTemplates. The namespaces associated with the semantic memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaceTemplates

      SemanticMemoryStrategyInput.Builder namespaceTemplates(Collection<String> namespaceTemplates)

      The namespaceTemplates associated with the semantic memory strategy.

      Parameters:
      namespaceTemplates - The namespaceTemplates associated with the semantic memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaceTemplates

      SemanticMemoryStrategyInput.Builder namespaceTemplates(String... namespaceTemplates)

      The namespaceTemplates associated with the semantic memory strategy.

      Parameters:
      namespaceTemplates - The namespaceTemplates associated with the semantic memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryRecordSchema

      SemanticMemoryStrategyInput.Builder memoryRecordSchema(MemoryRecordSchema memoryRecordSchema)
      Sets the value of the MemoryRecordSchema property for this object.
      Parameters:
      memoryRecordSchema - The new value for the MemoryRecordSchema property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryRecordSchema

      default SemanticMemoryStrategyInput.Builder memoryRecordSchema(Consumer<MemoryRecordSchema.Builder> memoryRecordSchema)
      Sets the value of the MemoryRecordSchema property for this object. This is a convenience method that creates an instance of the MemoryRecordSchema.Builder avoiding the need to create one manually via MemoryRecordSchema.builder().

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

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

      SemanticMemoryStrategyInput.Builder recordExpirySpecification(RecordExpirySpecification recordExpirySpecification)

      The record expiry (long-term memory time-to-live) configuration for memory records generated by this strategy. Set recordExpiryDurationDays to the number of days after which records expire. If not specified, records generated by this strategy do not expire.

      Parameters:
      recordExpirySpecification - The record expiry (long-term memory time-to-live) configuration for memory records generated by this strategy. Set recordExpiryDurationDays to the number of days after which records expire. If not specified, records generated by this strategy do not expire.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recordExpirySpecification

      default SemanticMemoryStrategyInput.Builder recordExpirySpecification(Consumer<RecordExpirySpecification.Builder> recordExpirySpecification)

      The record expiry (long-term memory time-to-live) configuration for memory records generated by this strategy. Set recordExpiryDurationDays to the number of days after which records expire. If not specified, records generated by this strategy do not expire.

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

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

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