Python class
GenerationStatus
GenerationStatusβ
class max.interfaces.GenerationStatus(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Enum representing the status of a generation process in the MAX API.
ACTIVEβ
ACTIVE = 'active'
The generation process is ongoing.
CANCELLEDβ
CANCELLED = 'cancelled'
The generation process has been cancelled by the user.
END_OF_SEQUENCEβ
END_OF_SEQUENCE = 'end_of_sequence'
The generation process has reached the end of the sequence.
MAXIMUM_LENGTHβ
MAXIMUM_LENGTH = 'maximum_length'
The generation process has reached the maximum allowed length.
is_doneβ
property is_done: bool
Returns True if the generation process is complete (not ACTIVE).
-
Returns:
-
Trueif the status is notACTIVE, indicating completion.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!