Packages

Elixir client for the Anthropic Messages API — typed content blocks, native tool use, streaming, retries.

Current section

Files

Jump to
anthropic_community lib anthropic messages stream_event content_block_start.ex
Raw

lib/anthropic/messages/stream_event/content_block_start.ex

defmodule Anthropic.Messages.StreamEvent.ContentBlockStart do
@moduledoc "Announces a new content block at `index`, with its (still-partial) initial value."
defstruct [:index, :content_block]
@type t :: %__MODULE__{index: non_neg_integer(), content_block: Anthropic.Messages.Content.t()}
end