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

Method remove_subtask

camel/tasks/task.py:163–169  ·  view source on GitHub ↗

r"""Remove a subtask from the current task. Args: id (str): The id of the subtask to be removed.

(self, id: str)

Source from the content-addressed store, hash-verified

161 self.subtasks.append(task)
162
163 def remove_subtask(self, id: str):
164 r"""Remove a subtask from the current task.
165
166 Args:
167 id (str): The id of the subtask to be removed.
168 """
169 self.subtasks = [task for task in self.subtasks if task.id != id]
170
171 def get_running_task(self) -> Optional["Task"]:
172 r"""Get RUNNING task."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected