MCPcopy Create free account
hub / github.com/WangHanLinHenry/SPA-RL-Agent / from_str

Method from_str

fastchat/serve/controller.py:39–45  ·  view source on GitHub ↗
(cls, name)

Source from the content-addressed store, hash-verified

37
38 @classmethod
39 def from_str(cls, name):
40 if name == "lottery":
41 return cls.LOTTERY
42 elif name == "shortest_queue":
43 return cls.SHORTEST_QUEUE
44 else:
45 raise ValueError(f"Invalid dispatch method")
46
47
48@dataclasses.dataclass

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected