MCPcopy Create free account
hub / github.com/Tencent/digitalhuman / _task_assign

Method _task_assign

SWF/src/base.py:186–196  ·  view source on GitHub ↗
(
        self,
        tasks: List[Task],
        survived_agent_names: set,
        **kwargs
    )

Source from the content-addressed store, hash-verified

184 return False
185
186 def _task_assign(
187 self,
188 tasks: List[Task],
189 survived_agent_names: set,
190 **kwargs
191 ):
192 # remove the eliminated
193 # _team = [name for name, record in self.records.items() if name in survived_agent_names]
194 _team = list(survived_agent_names)
195 response: Response = self.core.step(tasks, team=_team, **kwargs)
196 return response
197
198 def get_cost(self, usages):
199 return (usages[0]*1 + usages[1]*4) / 10000

Callers 1

runMethod · 0.45

Calls 1

stepMethod · 0.45

Tested by

no test coverage detected