Skip to content

Finish image generation event schema

FinishImageGenerationEventSchema

Bases: BaseImageGenerationEventSchema

Source code in griptape/griptape/schemas/events/finish_image_generation_event_schema.py
class FinishImageGenerationEventSchema(BaseImageGenerationEventSchema):
    @post_load
    def make_obj(self, data, **kwargs):
        from griptape.events import FinishImageGenerationEvent

        return FinishImageGenerationEvent(**data)

make_obj(data, **kwargs)

Source code in griptape/griptape/schemas/events/finish_image_generation_event_schema.py
@post_load
def make_obj(self, data, **kwargs):
    from griptape.events import FinishImageGenerationEvent

    return FinishImageGenerationEvent(**data)