class

Anthropic::SnapshotBuilder

Inherits Reference < Object

MessageStream class for handling Server-Sent Events (SSE) from streaming API

Events are buffered on first iteration so that helper methods like text, collect_text, final_message, thinking, and citations can be called in any order and multiple times. Accumulates stream events into a final Message. Internal.

Instance methods

apply(event : AnyStreamEvent)
Source
message
Source