Interface GenerativeChunkDataDetails.Builder

  • Method Details

    • completion

      A chunk of the LLM response.

      Parameters:
      completion - A chunk of the LLM response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • references

      The references used to generate the LLM response.

      Parameters:
      references - The references used to generate the LLM response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • references

      The references used to generate the LLM response.

      Parameters:
      references - The references used to generate the LLM response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • references

      The references used to generate the LLM response.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to references(List<DataSummary>).

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

      GenerativeChunkDataDetails.Builder nextChunkToken(String nextChunkToken)

      The token for the next set of chunks. Use the value returned in the previous response in the next request to retrieve the next set of chunks.

      Parameters:
      nextChunkToken - The token for the next set of chunks. Use the value returned in the previous response in the next request to retrieve the next set of chunks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.