Method to explicitly cancel a running task. The implementation should handle the logic of stopping the execution and publishing the final 'canceled' status event on the provided event bus.
The ID of the task to cancel.
The event bus associated with the task's execution.
Executes the agent logic based on the request context and publishes events.
The context of the current request.
The bus to publish execution events to.
Method to explicitly cancel a running task. The implementation should handle the logic of stopping the execution and publishing the final 'canceled' status event on the provided event bus.