ClaudeCode.Message.AssistantMessage (ClaudeCode v0.16.0)
View SourceRepresents an assistant message from the Claude CLI.
Assistant messages contain Claude's responses, which can include text, tool use requests, or a combination of both.
Matches the official SDK schema:
{
type: "assistant",
uuid: string,
message: { ... }, # Anthropic SDK Message type
session_id: string,
parent_tool_use_id?: string | null
}
Summary
Functions
Type guard to check if a value is an AssistantMessage.
Creates a new AssistantMessage from JSON data.
Types
@type t() :: %ClaudeCode.Message.AssistantMessage{ message: ClaudeCode.Types.message(), parent_tool_use_id: String.t() | nil, session_id: String.t(), type: :assistant, uuid: String.t() | nil }