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

Method set_agent_identity

atomic-agent/src/turn/orchestrator/mod.rs:550–552  ·  view source on GitHub ↗

Set the delegated agent identity that recorded turns sign as. Called by the CLI hook handler after construction with the name resolved from the selection chain (`ATOMIC_AGENT_IDENTITY` env var, else the global `agent_identity` setting, else the active server profile's binding). `None` — the default — keeps the plus-tag fallback. The name crosses as plain data; resolution errors were already handl

(&mut self, identity: Option<String>)

Source from the content-addressed store, hash-verified

548 /// fallback. The name crosses as plain data; resolution errors were
549 /// already handled upstream and degrade to `None`.
550 pub fn set_agent_identity(&mut self, identity: Option<String>) {
551 self.agent_identity = identity;
552 }
553
554 /// Attach the managed-run context for this hook invocation
555 /// (see [`ManagedRunContext`]).

Callers 2

runMethod · 0.80
dispatch_turn_eventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected