Set replaces the current agent name without validating that it exists in the team. Used from agent_delegation.go where the validation has already been performed against the team's transfer/handoff lists.
(name string)
| 46 | // in the team. Used from agent_delegation.go where the validation has |
| 47 | // already been performed against the team's transfer/handoff lists. |
| 48 | func (r *agentRouter) Set(name string) { |
| 49 | r.current.Store(&name) |
| 50 | } |
| 51 | |
| 52 | // SetValidated checks that name exists in the team, then sets it as the |
| 53 | // current agent. Returns the team's lookup error unchanged so callers |