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

Method get_result

camel/tasks/task.py:198–210  ·  view source on GitHub ↗

r"""Get task result to a sting. Args: indent (str): The ident for hierarchical tasks. Returns: str: The printable task string.

(self, indent: str = "")

Source from the content-addressed store, hash-verified

196 return _str
197
198 def get_result(self, indent: str = "") -> str:
199 r"""Get task result to a sting.
200
201 Args:
202 indent (str): The ident for hierarchical tasks.
203
204 Returns:
205 str: The printable task string.
206 """
207 _str = f"{indent}Task {self.id} result: {self.result}\n"
208 for subtask in self.subtasks:
209 _str += subtask.get_result(indent + " ")
210 return _str
211
212 def decompose(
213 self,

Callers 1

composeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected