ClaudeCode.Message.UserMessage (ClaudeCode v0.36.3)
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,
tool_use_result?: object | null, # Rich metadata about the tool result
isSynthetic: boolean, # Whether this is a synthetic message
isReplay: boolean # Whether this is a replayed message
}
Summary
Types
@type message_content() :: String.t() | [ClaudeCode.Content.t()]
@type message_param() :: %{ content: message_content(), role: ClaudeCode.Message.role() }