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