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

Method has_prompt

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

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

(&self)

Source from the content-addressed store, hash-verified

382
383 /// Returns `true` if this event has a user prompt attached.
384 pub fn has_prompt(&self) -> bool {
385 self.prompt.as_ref().is_some_and(|p| !p.is_empty())
386 }
387
388 /// Returns the prompt truncated to `max_len` characters.
389 ///

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected