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

Method is_sub_agent

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

Returns `true` if this event represents a sub-agent (Task) tool use. Sub-agent tool uses are special because they may warrant their own sub-turn recording.

(&self)

Source from the content-addressed store, hash-verified

414 /// Sub-agent tool uses are special because they may warrant their own
415 /// sub-turn recording.
416 pub fn is_sub_agent(&self) -> bool {
417 self.tool_name.as_deref() == Some("Task")
418 }
419}
420
421impl fmt::Display for TurnEvent {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected