interface AgentTask{ progress:number; complete:boolean; errorMsg:string; }