pub async fn handle_with_agent<F, Fut, T>(
common_params: CommonParams,
repository_url: Option<String>,
capability: &str,
task_prompt: &str,
handler: F,
) -> Result<T>Expand description
High-level function to handle tasks with agents using a common pattern This is a convenience function that sets up an agent and executes a task