handle_with_agent

Function handle_with_agent 

Source
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>
where F: FnOnce(StructuredResponse) -> Fut, Fut: Future<Output = 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