tools.check_task module

Check the status of background tool tasks or list all tasks.

async tools.check_task.run(task_id=None, action='status', ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • task_id (str | None) – Background task identifier.

  • action (str) – The action value.

  • ctx (ToolContext | None) – Tool execution context providing access to bot internals.

Returns:

Result string.

Return type:

str