MCPcopy Index your code
hub / github.com/shareAI-lab/learn-claude-code / create

Method create

agents/s07_task_system.py:67–74  ·  view source on GitHub ↗
(self, subject: str, description: str = "")

Source from the content-addressed store, hash-verified

65 path.write_text(json.dumps(task, indent=2, ensure_ascii=False))
66
67 def create(self, subject: str, description: str = "") -> str:
68 task = {
69 "id": self._next_id, "subject": subject, "description": description,
70 "status": "pending", "blockedBy": [], "owner": "",
71 }
72 self._save(task)
73 self._next_id += 1
74 return json.dumps(task, indent=2, ensure_ascii=False)
75
76 def get(self, task_id: int) -> str:
77 return json.dumps(self._load(task_id), indent=2, ensure_ascii=False)

Callers 2

s07_task_system.pyFile · 0.45
agent_loopFunction · 0.45

Calls 1

_saveMethod · 0.95

Tested by

no test coverage detected