pub async fn retry(
id: i64,
agent: Option<String>,
model: Option<String>,
) -> Result<()>Expand description
Retry a task (reset to new).
When agent is provided, the task is force-routed to that agent/model and
set directly to Routed status, bypassing the router entirely.