Skip to main content

prompt_text

Function prompt_text 

Source
pub fn prompt_text(request: &LlmRequest) -> String
Expand description

Returns a lossy text view of all user messages, joined by newlines.

Only text and refusal blocks are included. Instructions, tool content, reasoning, and media are omitted. Returns an empty string when no user text exists.