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

Method add_subtask

camel/tasks/task.py:154–161  ·  view source on GitHub ↗

r"""Add a subtask to the current task. Args: task (Task): The subtask to be added.

(self, task: "Task")

Source from the content-addressed store, hash-verified

152 self.parent.set_state(state)
153
154 def add_subtask(self, task: "Task"):
155 r"""Add a subtask to the current task.
156
157 Args:
158 task (Task): The subtask to be added.
159 """
160 task.parent = self
161 self.subtasks.append(task)
162
163 def remove_subtask(self, id: str):
164 r"""Remove a subtask from the current task.

Callers 1

set_tasks_dependenceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected