MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / show_task

Method show_task

tools/scheduler.py:198–205  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

196 return Response(message=json.dumps([serialize_task(task) for task in tasks], indent=4), break_loop=False)
197
198 async def show_task(self, **kwargs) -> Response:
199 task_uuid: str = kwargs.get("uuid", "")
200 if not task_uuid:
201 return Response(message="Task UUID is required", break_loop=False)
202 task: ScheduledTask | AdHocTask | PlannedTask | None = TaskScheduler.get().get_task_by_uuid(task_uuid)
203 if not task:
204 return Response(message=f"Task not found: {task_uuid}", break_loop=False)
205 return Response(message=json.dumps(serialize_task(task), indent=4), break_loop=False)
206
207 async def run_task(self, **kwargs) -> Response:
208 task_uuid: str = kwargs.get("uuid", "")

Callers 1

executeMethod · 0.95

Calls 4

ResponseClass · 0.90
serialize_taskFunction · 0.90
getMethod · 0.45
get_task_by_uuidMethod · 0.45

Tested by

no test coverage detected