Proto.MessageMessages exchanged with Claude wire format.
This module defines the wire format types for messages that can be sent to and received from Claude, including user input, assistant responses, system messages, and result metadata.
module User : sig ... endMessages sent by the user.
module Assistant : sig ... endMessages from Claude assistant.
module System : sig ... endSystem control and status messages.
module Result : sig ... endFinal result messages with metadata about the conversation.
type t = | User of User.t| Assistant of Assistant.t| System of System.t| Result of Result.tThe type of messages, which can be user, assistant, system, or result.
*)