Extracts user message content from a Claude protocol timeline event.
Returns the extracted content when the event represents a user-sent
message (SDKUserMessage with type: "user" and
origin: "USER_EVENT"). Returns null for all other events.
Handles both string and Array<ContentBlockParam> forms of
MessageParam.content.
Extracts user message content from a Claude protocol timeline event.
Returns the extracted content when the event represents a user-sent message (
SDKUserMessagewithtype: "user"andorigin: "USER_EVENT"). Returnsnullfor all other events.Handles both
stringandArray<ContentBlockParam>forms ofMessageParam.content.