TPTU: Task Planning and Tool Usage of Large Language Model-based AI Agents