ClaudeCode.Message.UserMessage (ClaudeCode v0.16.0)
View SourceRepresents a user message from the Claude CLI.
User messages typically contain tool results in response to Claude's tool use requests.
Matches the official SDK schema:
{
type: "user",
uuid?: string,
message: MessageParam, # from Anthropic SDK
session_id: string,
parent_tool_use_id?: string | null
}
Summary
Functions
Creates a new UserMessage from JSON data.
Type guard to check if a value is a UserMessage.
Types
@type t() :: %ClaudeCode.Message.UserMessage{ message: ClaudeCode.Types.message_param(), parent_tool_use_id: String.t() | nil, session_id: ClaudeCode.Types.session_id(), type: :user, uuid: String.t() | nil }