ClaudeCode.Message.User (ClaudeCode v0.1.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",
message: MessageParam, # from Anthropic SDK
session_id: string
}
Summary
Functions
Creates a new User message from JSON data.
Type guard to check if a value is a User message.
Types
@type t() :: %ClaudeCode.Message.User{ message: ClaudeCode.Types.message_param(), session_id: ClaudeCode.Types.session_id(), type: :user }