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 tool_use.ex
Raw

lib/anthropic/messages/content/tool_use.ex

defmodule Anthropic.Messages.Content.ToolUse do
@moduledoc "A tool invocation requested by the assistant, as a native `tool_use` content block."
defstruct [:id, :name, :input, :cache_control]
@type t :: %__MODULE__{
id: String.t(),
name: String.t(),
input: map(),
cache_control: map() | nil
}
end