Skip to main content

derive

Function derive 

Source
pub fn derive(opening: &str) -> Option<String>
Expand description

The name to show before any model has been asked: the first line of the opening message, with runs of whitespace collapsed and the cap applied at a word boundary where there is one.

None when the message has nothing to name — an empty prompt, or one that is only whitespace and punctuation. The caller keeps the preview then rather than inventing a placeholder.