Interface LLMChoice.Builder2

Enclosing class:
LLMChoice

public static interface LLMChoice.Builder2
Builder helper class.
  • Method Summary

    Modifier and Type
    Method
    Description
    finishReason(String finishReason)
    Set the finishReason of this LLMChoice instance.
  • Method Details

    • finishReason

      LLMChoice finishReason(@Nonnull String finishReason)
      Set the finishReason of this LLMChoice instance.
      Parameters:
      finishReason - Reason the model stopped generating tokens. 'stop' if the model hit a natural stop point or a provided stop sequence, 'length' if the maximum token number was reached, 'content_filter' if content was omitted due to a filter enforced by the LLM model provider or the content filtering module
      Returns:
      The LLMChoice instance.