Interface RetrieveResult.Builder

  • Method Details

    • associationId

      RetrieveResult.Builder associationId(String associationId)

      The identifier of the assistant association for the retrieved result.

      Parameters:
      associationId - The identifier of the assistant association for the retrieved result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceId

      RetrieveResult.Builder sourceId(String sourceId)

      The URL, URI, or ID of the retrieved content when available, or a UUID when unavailable.

      Parameters:
      sourceId - The URL, URI, or ID of the retrieved content when available, or a UUID when unavailable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • referenceType

      RetrieveResult.Builder referenceType(String referenceType)

      A type to define the KB origin of a retrieved content.

      Parameters:
      referenceType - A type to define the KB origin of a retrieved content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • referenceType

      RetrieveResult.Builder referenceType(ReferenceType referenceType)

      A type to define the KB origin of a retrieved content.

      Parameters:
      referenceType - A type to define the KB origin of a retrieved content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • contentText

      RetrieveResult.Builder contentText(String contentText)

      The text content of the retrieved result.

      Parameters:
      contentText - The text content of the retrieved result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.