Interface TextResponsePart.Builder

  • Method Details

    • span

      Contains information about where the text with a citation begins and ends in the generated output.

      Parameters:
      span - Contains information about where the text with a citation begins and ends in the generated output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • span

      Contains information about where the text with a citation begins and ends in the generated output.

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

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

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

      The part of the generated text that contains a citation.

      Parameters:
      text - The part of the generated text that contains a citation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.