Skip to main content

text_message

Function text_message 

Source
pub fn text_message(role: &str, text: &str) -> Message
Expand description

Build a wire Message carrying a single text content block.

Shared by the turn loop and by the control plane’s eventlog write path; one owner of the wire-message construction prevents the two from drifting.