MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / gen_task_id

Method gen_task_id

camel/tasks/task.py:310–312  ·  view source on GitHub ↗

r"""Generate a new task id.

(self)

Source from the content-addressed store, hash-verified

308 self.task_map: Dict[str, Task] = {task.id: task}
309
310 def gen_task_id(self) -> str:
311 r"""Generate a new task id."""
312 return f"{len(self.tasks)}"
313
314 def exist(self, task_id: str) -> bool:
315 r"""Check if a task with the given id exists."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected