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 citation search_result_location.ex
Raw

lib/anthropic/messages/content/citation/search_result_location.ex

defmodule Anthropic.Messages.Content.Citation.SearchResultLocation do
@moduledoc "A citation to a block range within a `search_result` content block."
defstruct [
:cited_text,
:end_block_index,
:search_result_index,
:source,
:start_block_index,
:title
]
@type t :: %__MODULE__{
cited_text: String.t(),
end_block_index: non_neg_integer(),
search_result_index: non_neg_integer(),
source: String.t(),
start_block_index: non_neg_integer(),
title: String.t() | nil
}
end