NAME
Claude::Agent::Message::StreamEvent - Partial message event
DESCRIPTION
A raw API streaming event, delivered when the include_partial_messages option is on. Events cover only the main conversation, so parent_tool_use_id is always undef.
ATTRIBUTES
type
Always stream_event.
event
The API event hash: message_start, content_block_start, content_block_delta, content_block_stop, message_delta or message_stop, with its payload.
uuid, session_id, parent_tool_use_id, agent_id, raw
See Claude::Agent::Message::Base.
METHODS
new
Takes a flat list of name/value pairs. Unknown names are ignored.
event_type
The event's type.
delta
The event's delta hash, for content_block_delta and message_delta.
text_delta
print $msg->text_delta // '';
The text of a text_delta, or undef for any other event.
AUTHOR
LNATION, <email at lnation.org>
LICENSE
This software is Copyright (c) 2026 by LNATION.
This is free software, licensed under The Artistic License 2.0 (GPL Compatible).