MCPcopy Create free account
hub / github.com/Louisym/MiniCC / AgentIdentity

Class AgentIdentity

tutorials/13_multi_agent_coordination.py:82–97  ·  view source on GitHub ↗

Agent 的身份信息。 格式:{name}@{team_name} 例如:researcher@my-project, team-lead@my-project 对应 Reference: EP08 §5

Source from the content-addressed store, hash-verified

80
81@dataclass
82class AgentIdentity:
83 """
84 Agent 的身份信息。
85
86 格式:{name}@{team_name}
87 例如:researcher@my-project, team-lead@my-project
88
89 对应 Reference: EP08 §5
90 """
91 name: str
92 team_name: str
93 role: str # "leader" or "worker"
94
95 @property
96 def agent_id(self) -> str:
97 return f"{self.name}@{self.team_name}"
98
99
100# ============================================================

Callers 2

__init__Method · 0.85
spawn_workerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected