MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_prompt

Method has_prompt

atomic-agent/src/event.rs:393–395  ·  view source on GitHub ↗

Returns `true` if this event has a user prompt attached.

(&self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected