Skip to content

Base prompt event

BasePromptEvent

Bases: BaseEvent, ABC

Source code in griptape/griptape/events/base_prompt_event.py
7
8
9
@define
class BasePromptEvent(BaseEvent, ABC):
    token_count: int = field(kw_only=True)

token_count: int = field(kw_only=True) class-attribute instance-attribute