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 content text.ex
Raw

lib/anthropic/messages/content/text.ex

defmodule Anthropic.Messages.Content.Text do
@moduledoc "A plain text content block."
defstruct [:text, :citations, :cache_control]
@type t :: %__MODULE__{
text: String.t(),
citations: list(Anthropic.Messages.Content.Citation.t()) | nil,
cache_control: map() | nil
}
end