orxtra v0.13.0 /scheduler.src.orxtra.scheduler._lifecycle_handlers
On this page

LifecycleHandlersMixin implements the task lifecycle tools agents call directly: start_task, end_task, create_task, create_workflow, create_wait_for, and await_task.

#scheduler.src.orxtra.scheduler._lifecycle_handlers

#scheduler.src.orxtra.scheduler._lifecycle_handlers

#LifecycleHandlersMixin

Mixin for task lifecycle handlers (start, end, create, await).

#handle_start_task

python
async def handle_start_task(self, session_id: str, task_id: str) -> str

#handle_end_task

python
async def handle_end_task(self, session_id: str, message: str) -> str

#handle_create_task

python
async def handle_create_task(self, session_id: str, params: dict[str, Any] | CreateTaskParams) -> str

#handle_create_workflow

python
async def handle_create_workflow(self, session_id: str, params: CreateWorkflowParams | dict[str, Any]) -> str

#handle_create_wait_for

python
async def handle_create_wait_for(self, session_id: str, params: dict[str, Any]) -> str

#handle_await_task

python
async def handle_await_task(self, session_id: str, task_id: str) -> str

#check_active_task

python
def check_active_task(self, session_id: str) -> UUID
Search