Interface MemoryConfiguration.Builder

  • Method Details

    • enabledMemoryTypesWithStrings

      MemoryConfiguration.Builder enabledMemoryTypesWithStrings(Collection<String> enabledMemoryTypes)

      The type of memory that is stored.

      Parameters:
      enabledMemoryTypes - The type of memory that is stored.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledMemoryTypesWithStrings

      MemoryConfiguration.Builder enabledMemoryTypesWithStrings(String... enabledMemoryTypes)

      The type of memory that is stored.

      Parameters:
      enabledMemoryTypes - The type of memory that is stored.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledMemoryTypes

      MemoryConfiguration.Builder enabledMemoryTypes(Collection<MemoryType> enabledMemoryTypes)

      The type of memory that is stored.

      Parameters:
      enabledMemoryTypes - The type of memory that is stored.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledMemoryTypes

      MemoryConfiguration.Builder enabledMemoryTypes(MemoryType... enabledMemoryTypes)

      The type of memory that is stored.

      Parameters:
      enabledMemoryTypes - The type of memory that is stored.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionSummaryConfiguration

      MemoryConfiguration.Builder sessionSummaryConfiguration(SessionSummaryConfiguration sessionSummaryConfiguration)

      Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.

      Parameters:
      sessionSummaryConfiguration - Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionSummaryConfiguration

      default MemoryConfiguration.Builder sessionSummaryConfiguration(Consumer<SessionSummaryConfiguration.Builder> sessionSummaryConfiguration)

      Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.

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

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

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

      MemoryConfiguration.Builder storageDays(Integer storageDays)

      The number of days the agent is configured to retain the conversational context.

      Parameters:
      storageDays - The number of days the agent is configured to retain the conversational context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.