Anthropic.Event.ContentBlockDelta (SkillKit v0.1.0)

Copy Markdown View Source

Represents the content_block_delta SSE event from the Anthropic streaming API.

Carries an incremental update for the content block at index. For text blocks the delta has type: :text_delta; for tool-use blocks it has type: :input_json_delta with a partial JSON string.

Summary

Types

delta()

@type delta() ::
  %{type: :text_delta, text: String.t()}
  | %{type: :input_json_delta, partial_json: String.t()}

t()

@type t() :: %Anthropic.Event.ContentBlockDelta{
  delta: delta(),
  index: non_neg_integer()
}