MCPcopy Create free account
hub / github.com/FreedomIntelligence/LLMZoo / from_str

Method from_str

llmzoo/deploy/webapp/controller.py:32–38  ·  view source on GitHub ↗
(cls, name)

Source from the content-addressed store, hash-verified

30
31 @classmethod
32 def from_str(cls, name):
33 if name == "lottery":
34 return cls.LOTTERY
35 elif name == "shortest_queue":
36 return cls.SHORTEST_QUEUE
37 else:
38 raise ValueError(f"Invalid dispatch method")
39
40
41@dataclasses.dataclass

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected