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)
| 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 { |
no outgoing calls
no test coverage detected