Interface LlmExtractionConfig.Builder

  • Method Details

    • llmExtractionInstruction

      LlmExtractionConfig.Builder llmExtractionInstruction(String llmExtractionInstruction)

      Instructions for extraction. Supports built-in operators like LATEST_VALUE or custom natural-language instructions.

      Parameters:
      llmExtractionInstruction - Instructions for extraction. Supports built-in operators like LATEST_VALUE or custom natural-language instructions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      LlmExtractionConfig.Builder definition(String definition)

      Description of what this metadata field represents.

      Parameters:
      definition - Description of what this metadata field represents.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • validation

      LlmExtractionConfig.Builder validation(Validation validation)

      Validation rules to constrain extracted values.

      Parameters:
      validation - Validation rules to constrain extracted values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • validation

      default LlmExtractionConfig.Builder validation(Consumer<Validation.Builder> validation)

      Validation rules to constrain extracted values.

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

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

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