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

Method is_strategy_specific

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

Returns `true` if this action requires strategy-specific handling. "Common" actions (`UpdateInteraction`, `ClearEndedAt`) are applied directly to the session state by `apply_common_actions()`. Strategy-specific actions are returned to the caller for dispatch.

(&self)

Source from the content-addressed store, hash-verified

288 /// directly to the session state by `apply_common_actions()`.
289 /// Strategy-specific actions are returned to the caller for dispatch.
290 pub fn is_strategy_specific(&self) -> bool {
291 matches!(
292 self,
293 Action::RecordTurn
294 | Action::RecordIfChanged
295 | Action::DiscardIfNoFiles
296 | Action::WarnStaleSession
297 )
298 }
299
300 /// Returns the canonical string representation.
301 pub fn as_str(&self) -> &'static str {

Callers 1

strategy_actionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected