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!