MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / load

Method load

core/taskqueue.py:103–112  ·  view source on GitHub ↗
(cls, path)

Source from the content-addressed store, hash-verified

101
102 @classmethod
103 def load(cls, path):
104 data = json.loads(Path(path).read_text())
105 q = cls(name=data.get('name',''), project_dir=data.get('project_dir',''))
106 q.original_request = data.get('original_request','')
107 q.created_at = data.get('created_at','')
108 q._path = Path(path)
109 for td in data.get('tasks',[]):
110 t = Task(**td)
111 q.tasks.append(t)
112 return q
113
114def list_queues():
115 """Return all saved queues sorted by newest first."""

Callers 12

count_chunksFunction · 0.80
_load_all_chunksFunction · 0.80
repair_failed_embeddingsFunction · 0.80
_load_vector_indexFunction · 0.80
index_statsFunction · 0.80
_load_configMethod · 0.80
validate_lora_adapterFunction · 0.80
get_adapter_infoFunction · 0.80
list_queuesFunction · 0.80
_load_or_createMethod · 0.80

Calls 3

appendMethod · 0.80
TaskClass · 0.70
getMethod · 0.45

Tested by 2