MCPcopy Create free account
hub / github.com/Virtual-Protocol/virtuals-python / add_worker

Method add_worker

src/virtuals_sdk/game/agent.py:119–122  ·  view source on GitHub ↗

Add worker to worker dict for the agent

(self, worker_config: WorkerConfig)

Source from the content-addressed store, hash-verified

117 self._session.reset()
118
119 def add_worker(self, worker_config: WorkerConfig):
120 """Add worker to worker dict for the agent"""
121 self.workers[worker_config.id] = worker_config
122 return self.workers
123
124 def get_worker_config(self, worker_id: str):
125 """Get worker config from worker dict"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected