Skip to content

Base prompt event schema

BasePromptEventSchema

Bases: BaseEventSchema

Source code in griptape/griptape/schemas/events/base_prompt_event_schema.py
class BasePromptEventSchema(BaseEventSchema):
    token_count = fields.Int()

    @abstractmethod
    def make_obj(self, data, **kwargs):
        ...

token_count = fields.Int() class-attribute instance-attribute

make_obj(data, **kwargs) abstractmethod

Source code in griptape/griptape/schemas/events/base_prompt_event_schema.py
@abstractmethod
def make_obj(self, data, **kwargs):
    ...