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

Method is_active

atomic-agent/src/turn/phase.rs:116–118  ·  view source on GitHub ↗

Returns `true` if the phase represents an active agent turn. An active turn means the agent is currently working on a prompt and file changes should be tracked. # Example ```rust use atomic_agent::turn::phase::Phase; assert!(Phase::Active.is_active()); assert!(Phase::ActiveRecorded.is_active()); assert!(!Phase::Idle.is_active()); assert!(!Phase::Ended.is_active()); ```

(&self)

Source from the content-addressed store, hash-verified

114 /// assert!(!Phase::Ended.is_active());
115 /// ```
116 pub fn is_active(&self) -> bool {
117 matches!(self, Phase::Active | Phase::ActiveRecorded)
118 }
119
120 /// Returns `true` if the session has ended.
121 pub fn is_ended(&self) -> bool {

Callers 3

is_turn_activeMethod · 0.45
handle_turn_endMethod · 0.45
fmtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected