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

Method has_prompt

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

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

(&self)

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected