Skip to main content

build_messages

Function build_messages 

Source
pub fn build_messages(
    request_id: Id<MessageMarker>,
    results: Vec<ExpandedContent>,
) -> Vec<OutgoingMessage>
Expand description

Builds the messages answering the message request_id, in the order they are sent.

Every message replies to the request, so each expansion stays attached to the link it came from. Embeds ride in a single reply, while each code block gets a reply of its own: a block fills the message content, and a message carries only one.