Skip to content

text_chunk_event

TextChunkEvent

Bases: BaseChunkEvent

Source code in griptape/events/text_chunk_event.py
@define
class TextChunkEvent(BaseChunkEvent):
    token: str = field(kw_only=True, metadata={"serializable": True})

    def __str__(self) -> str:
        return self.token

token: str = field(kw_only=True, metadata={'serializable': True}) class-attribute instance-attribute

__str__()

Source code in griptape/events/text_chunk_event.py
def __str__(self) -> str:
    return self.token