TaskWeaver: A Code-First Agent Framework

Bo Qiao, Liqun Li, Xu Zhang, Shilin He, Yu Kang +14 more
11/29/2023
cs.AI

Official code: microsoft/TaskWeaver (6,176 stars, MIT, last commit 2026-03-23).

Abstract

Large Language Models (LLMs) have shown impressive abilities in natural language understanding and generation, leading to their widespread 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 https://github.com/microsoft/TaskWeaver/.

View on arXivView PDF

Code Implementations(1)

MIT

The first "code-first" agent framework for seamlessly planning and executing data analytics tasks.

6,176780CSS, ShellSep 11, 20237 months agoMIT
agentai-agentscode-interpretercopilotdata-analysis+2 more

Similar Papers

Cite this paper

@article{qiao2023taskweaver,
  title  = {TaskWeaver: A Code-First Agent Framework},
  author = {Bo Qiao and Liqun Li and Xu Zhang and Shilin He and Yu Kang and Chaoyun Zhang and Fangkai Yang and Hang Dong and Jue Zhang and Lu Wang and Minghua Ma and Pu Zhao and Si Qin and Xiaoting Qin and Chao Du and Yong Xu and Qingwei Lin and Saravan Rajmohan and Dongmei Zhang},
  year   = {2023},
  eprint = {2311.17541},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.17541v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.17541.svg)](https://codeofpaper.com/paper/2311.17541)

Discussion