Packages

An Elixir framework for building LLM agent systems with skills, tools, and subagent delegation.

Current section

Files

Jump to
skill_kit lib anthropic event message_start.ex
Raw

lib/anthropic/event/message_start.ex

defmodule Anthropic.Event.MessageStart do
@moduledoc """
Represents the `message_start` SSE event from the Anthropic streaming API.
This is the first event in every streamed response. It carries the
message `id` and initial `usage` statistics (input tokens consumed).
"""
@type t :: %__MODULE__{
id: String.t() | nil,
usage: map() | nil
}
defstruct [:id, :usage]
end