Interface LLMChoice.Builder2
- Enclosing class:
LLMChoice
public static interface LLMChoice.Builder2
Builder helper class.
-
Method Summary
Modifier and TypeMethodDescriptionfinishReason(String finishReason) Set the finishReason of thisLLMChoiceinstance.
-
Method Details
-
finishReason
Set the finishReason of thisLLMChoiceinstance.- 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.
-