ClaudeCode.Message (ClaudeCode v0.21.0)

View Source

Utilities for working with messages from the Claude CLI.

Messages can be system initialization, assistant responses, user tool results, result messages, stream events, or conversation compaction boundaries. This module provides functions to parse and work with any message type.

Summary

Functions

Checks if a value is any type of message.

Returns the type of a message.

Types

Functions

message?(arg1)

@spec message?(any()) :: boolean()

Checks if a value is any type of message.

message_type(arg1)

@spec message_type(t()) :: :system | :assistant | :user | :result | :stream_event

Returns the type of a message.