klyn.llm.LLMResponse.finishReason
property
public readonly property finishReason as String
Description

Provider termination reason, or empty when unavailable. length means generation exhausted its budget and may be incomplete.

Example

if response.finishReason == "length": print("Output was truncated")