Interface EpisodicReflectionOverride.Builder

  • Method Details

    • appendToPrompt

      EpisodicReflectionOverride.Builder appendToPrompt(String appendToPrompt)

      The text appended to the prompt for the reflection step of the episodic memory strategy.

      Parameters:
      appendToPrompt - The text appended to the prompt for the reflection step of the episodic memory strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelId

      The model ID used for the reflection step of the episodic memory strategy.

      Parameters:
      modelId - The model ID used for the reflection step of the episodic 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. The namespaces over which reflections were created. Can be less nested than the episodic namespaces.

      Parameters:
      namespaces - This is a legacy parameter. The namespaces over which reflections were created. Can be less nested than the episodic namespaces.
      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. The namespaces over which reflections were created. Can be less nested than the episodic namespaces.

      Parameters:
      namespaces - This is a legacy parameter. The namespaces over which reflections were created. Can be less nested than the episodic namespaces.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaceTemplates

      EpisodicReflectionOverride.Builder namespaceTemplates(Collection<String> namespaceTemplates)

      The namespaceTemplates over which reflections were created. Can be less nested than the episodic namespaces.

      Parameters:
      namespaceTemplates - The namespaceTemplates over which reflections were created. Can be less nested than the episodic namespaces.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespaceTemplates

      EpisodicReflectionOverride.Builder namespaceTemplates(String... namespaceTemplates)

      The namespaceTemplates over which reflections were created. Can be less nested than the episodic namespaces.

      Parameters:
      namespaceTemplates - The namespaceTemplates over which reflections were created. Can be less nested than the episodic namespaces.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryRecordSchema

      EpisodicReflectionOverride.Builder memoryRecordSchema(MemoryRecordSchema memoryRecordSchema)

      Schema for metadata fields on records generated by this reflection override.

      Parameters:
      memoryRecordSchema - Schema for metadata fields on records generated by this reflection override.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryRecordSchema

      default EpisodicReflectionOverride.Builder memoryRecordSchema(Consumer<MemoryRecordSchema.Builder> memoryRecordSchema)

      Schema for metadata fields on records generated by this reflection override.

      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: