pub fn append_note(request: &mut Request, note: &str)Expand description
Appends note to the request as conversation text.
It joins the trailing user message when there is one, rather than opening a
turn of its own: Anthropic rejects two consecutive user messages, and a
tool_result must stay first within its message. A text block after it
satisfies both and keeps the addition a cache-safe suffix. Any other trailing
role — an empty conversation, or one ending on an assistant turn — takes a
fresh user message.