orxtra v0.13.0 /tool.src.orxtra.tool._task_tools
On this page

Task lifecycle tool constructors -- start_task, end_task, create_task, create_workflow, create_wait_for, and the suspending await_task -- all delegating to a TaskSchedulerRef bound to the active session.

#tool.src.orxtra.tool._task_tools

#tool.src.orxtra.tool._task_tools

#TaskSchedulerRef

All task_id parameters are UUID-formatted strings.

The scheduler converts to UUID internally.

#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]) -> str

#handle_create_workflow

python
async def handle_create_workflow(self, session_id: str, params: 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

#make_start_task_tool

python
def make_start_task_tool(scheduler_ref: TaskSchedulerRef, session_id: str) -> Tool

Create a tool that enters a task, triggering its pre-checks.

#make_end_task_tool

python
def make_end_task_tool(scheduler_ref: TaskSchedulerRef, session_id: str) -> Tool

Create a tool that completes the active task with a summary message.

#make_create_task_tool

python
def make_create_task_tool(scheduler_ref: TaskSchedulerRef, session_id: str) -> Tool

Create a tool that creates a concrete subtask within the active task.

#make_create_workflow_tool

python
def make_create_workflow_tool(scheduler_ref: TaskSchedulerRef, session_id: str) -> Tool

Create a tool that creates a goal-oriented task tree.

#make_create_wait_for_tool

python
def make_create_wait_for_tool(scheduler_ref: TaskSchedulerRef, session_id: str) -> Tool

Create a tool that blocks until a named event fires or timeout expires.

#make_await_task_tool

python
def make_await_task_tool(scheduler_ref: TaskSchedulerRef, session_id: str) -> Tool

Create a tool that suspends the session until a child task completes.

Search