doneReason

Sets the reason for completion of the generation response.

Return

This specification instance for method chaining.

Parameters

reason

The reason the generation finished (e.g., "stop", "length").