FinishReason property (NotesLLMResponse - LotusScript)

The reason the language model stopped generating a response.

It may be one of 3 possible Value:

LLM_FINISH_REASON_NONE(0), LLM_FINISH_REASON_STOP(1), LLM_FINISH_REASON_LENGTH(2).

Defined in

NotesLLMResponse

Data type

Integer

Return value

One of:

LLM_FINISH_REASON_NONE (0) indicates an error occurred.

LLM_FINISH_REASON_STOP (1) indicates all the language model has finished generating text.

LLM_FINISH_REASON_LENGTH (2) indicates that the max token limit was reached. The max token limit is configurable in the Domino IQ command document.

LLM_FINISH_REASON_FUNCTION_CALL (3) is not currently supported.