Returns `true` if this event has a user prompt attached.
(&self)
| 390 | |
| 391 | /// Returns `true` if this event has a user prompt attached. |
| 392 | pub fn has_prompt(&self) -> bool { |
| 393 | self.prompt.as_ref().is_some_and(|p| !p.is_empty()) |
| 394 | } |
| 395 | |
| 396 | /// Returns the prompt truncated to `max_len` characters. |
| 397 | /// |