Skip to content

delta_message

DeltaMessage

Bases: BaseMessage

Source code in griptape/common/prompt_stack/messages/delta_message.py
@define
class DeltaMessage(BaseMessage):
    role: Optional[str] = field(kw_only=True, default=None, metadata={"serializable": True})
    content: Optional[BaseDeltaMessageContent] = field(kw_only=True, default=None, metadata={"serializable": True})

content: Optional[BaseDeltaMessageContent] = field(kw_only=True, default=None, metadata={'serializable': True}) class-attribute instance-attribute

role: Optional[str] = field(kw_only=True, default=None, metadata={'serializable': True}) class-attribute instance-attribute