Skip to content

Finish image generation event

FinishImageGenerationEvent

Bases: BaseImageGenerationEvent

Source code in griptape/griptape/events/finish_image_generation_event.py
@define
class FinishImageGenerationEvent(BaseImageGenerationEvent):
    def to_dict(self) -> dict:
        from griptape.schemas import FinishImageGenerationEventSchema

        return dict(FinishImageGenerationEventSchema().dump(self))

to_dict()

Source code in griptape/griptape/events/finish_image_generation_event.py
def to_dict(self) -> dict:
    from griptape.schemas import FinishImageGenerationEventSchema

    return dict(FinishImageGenerationEventSchema().dump(self))