Interface MetadataSchemaEntry.Builder

  • Method Details

    • key

      The metadata field name. Must match an indexed key to be queryable via metadata filters.

      Parameters:
      key - The metadata field name. Must match an indexed key to be queryable via metadata filters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The MetadataValueType.

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

      The MetadataValueType.

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

      MetadataSchemaEntry.Builder extractionType(String extractionType)

      Specifies whether the metadata value is extracted by the LLM or passed through deterministically from the event.

      Parameters:
      extractionType - Specifies whether the metadata value is extracted by the LLM or passed through deterministically from the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • extractionType

      MetadataSchemaEntry.Builder extractionType(ExtractionType extractionType)

      Specifies whether the metadata value is extracted by the LLM or passed through deterministically from the event.

      Parameters:
      extractionType - Specifies whether the metadata value is extracted by the LLM or passed through deterministically from the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • extractionConfig

      MetadataSchemaEntry.Builder extractionConfig(ExtractionConfig extractionConfig)

      Configuration for extracting this metadata value from conversational content. Applicable only if extractionType is LLM inferred.

      Parameters:
      extractionConfig - Configuration for extracting this metadata value from conversational content. Applicable only if extractionType is LLM inferred.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • extractionConfig

      default MetadataSchemaEntry.Builder extractionConfig(Consumer<ExtractionConfig.Builder> extractionConfig)

      Configuration for extracting this metadata value from conversational content. Applicable only if extractionType is LLM inferred.

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

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

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