struct

Anthropic::ContentBlockDeltaEvent

Inherits JSON::Serializable < Anthropic::StreamEvent < Struct < Value < Object

Content block delta event

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

citation

Get a char-location citation from the delta (if present).

Returns nil when this delta carries a non-char-location citation variant (page, content_block, web_search_result, search_result). Use citation_data/citation_type on the underlying CitationsDelta for those variants.

Source
citation?

Check if this is a citation delta

Source
delta
Source
index
Source
partial_json

Convenience method for tool use deltas

Source
text

Convenience method for text deltas

Source
thinking

Convenience method for thinking deltas

Source
type
Source