Skip to content

Run schema

RunSchema

Bases: BaseSchema

Source code in griptape/griptape/schemas/memory/structure/run_schema.py
class RunSchema(BaseSchema):
    id = fields.Str()
    input = fields.Str()
    output = fields.Str()

    @post_load
    def make_obj(self, data, **kwargs):
        from griptape.memory.structure import Run

        return Run(**data)

id = fields.Str() class-attribute instance-attribute

input = fields.Str() class-attribute instance-attribute

output = fields.Str() class-attribute instance-attribute

make_obj(data, **kwargs)

Source code in griptape/griptape/schemas/memory/structure/run_schema.py
@post_load
def make_obj(self, data, **kwargs):
    from griptape.memory.structure import Run

    return Run(**data)