ResponseChunk¶
Structure Class¶
ResponseChunk
dataclass
¶
A structure representing a response chunk that contains exactly one of
the possible event types: contentStart, contentDelta, or
contentStop.
Attributes¶
content_delta
class-attribute
instance-attribute
¶
content_delta: ContentDeltaEvent | None = None
An event containing incremental output (stdout or stderr) from the command execution. These are the middle chunks.
content_start
class-attribute
instance-attribute
¶
content_start: ContentStartEvent | None = None
An event indicating the start of content streaming from the command execution. This is the first chunk received.
content_stop
class-attribute
instance-attribute
¶
content_stop: ContentStopEvent | None = None
An event indicating the completion of the command execution, including the exit code and final status. This is the last chunk received.