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

Method update_result

camel/tasks/task.py:123–130  ·  view source on GitHub ↗

r"""Set task result and mark the task as DONE. Args: result (str): The task result.

(self, result: str)

Source from the content-addressed store, hash-verified

121 self.result = ""
122
123 def update_result(self, result: str):
124 r"""Set task result and mark the task as DONE.
125
126 Args:
127 result (str): The task result.
128 """
129 self.result = result
130 self.set_state(TaskState.DONE)
131
132 def set_id(self, id: str):
133 r"""Set the id of the task.

Callers 1

composeMethod · 0.95

Calls 1

set_stateMethod · 0.95

Tested by

no test coverage detected