@unpublished{qiao2023taskweaver, author = {Qiao, Bo and Li, Liqun and Zhang, Xu and He, Shilin and Kang, Yu and Zhang, Chaoyun and Yang, Fangkai and Dong, Hang and Zhang, Jue and Wang, Lu and Ma, Minghua and Zhao, Pu and Qin, Si and Qin, Xiaoting and Du, Chao and Xu, Yong and 林庆维, Qingwei Lin and Rajmohan, Saravan and Zhang, Dongmei}, title = {TaskWeaver: A Code-First Agent Framework}, year = {2023}, month = {December}, abstract = {Large Language Models (LLMs) have shown impressive abilities in natural language understanding and generation, leading to their use in applications such as chatbots and virtual assistants. However, existing LLM frameworks face limitations in handling domain-specific data analytics tasks with rich data structures. Moreover, they struggle with flexibility to meet diverse user requirements. To address these issues, TaskWeaver is proposed as a code-first framework for building LLM-powered autonomous agents. It converts user requests into executable code and treats user-defined plugins as callable functions. TaskWeaver provides support for rich data structures, flexible plugin usage, and dynamic plugin selection, and leverages LLM coding capabilities for complex logic. It also incorporates domain-specific knowledge through examples and ensures the secure execution of generated code. TaskWeaver offers a powerful and flexible framework for creating intelligent conversational agents that can handle complex tasks and adapt to domain-specific scenarios. The code is open-sourced at this https URL.}, url = {http://approjects.co.za/?big=en-us/research/publication/taskweaver-a-code-first-agent-framework/}, }