MCPcopy Index your code
hub / github.com/microsoft/MarS / register_agent

Method register_agent

mlib/core/engine.py:48–52  ·  view source on GitHub ↗

Register agent.

(self, agent: BaseAgent)

Source from the content-addressed store, hash-verified

46 return len(self.events) > 0
47
48 def register_agent(self, agent: BaseAgent) -> None:
49 """Register agent."""
50 num_agent = len(self.agents)
51 agent.agent_id = num_agent
52 self.agents[agent.agent_id] = agent
53
54 def push_event(self, event: Event) -> None:
55 """Push event."""

Callers 4

run_basic_simulationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected