arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.17541cs.AI
收藏

TaskWeaver:一种代码优先的智能体框架

TaskWeaver: A Code-First Agent Framework

Microsoft(微软公司)
Bo Qiao, Liqun Li, Xu Zhang, Shilin He, Yu Kang, Chaoyun Zhang, Fangkai Yang, Hang Dong, Jue Zhang, Lu Wang, Minghua Ma, Pu Zhao, Si Qin, Xiaoting Qin, Chao Du,… 展开作者

Bo Qiao, Liqun Li, Xu Zhang, Shilin He, Yu Kang, Chaoyun Zhang, Fangkai Yang, Hang Dong, Jue Zhang, Lu Wang, Minghua Ma, Pu Zhao, Si Qin, Xiaoting Qin, Chao Du, Yong Xu, Qingwei Lin, Saravan Rajmohan, Dongmei Zhang

AI总结:

针对现有LLM框架在领域特定数据分析任务上的局限与灵活性不足问题,研究人员提出代码优先的TaskWeaver框架,可将用户请求转代码、支持动态插件调用等,为构建适配领域场景的智能对话智能体提供灵活方案且已开源。

摘要:

大语言模型(LLMs)在自然语言理解与生成方面展现出出色能力,已被广泛应用于聊天机器人、虚拟助手等场景。但现有LLM框架在处理具备丰富数据结构的领域特定数据分析任务时存在局限,且难以灵活满足多样化的用户需求。为解决这些问题,研究人员提出TaskWeaver——一种用于构建基于LLM的自主智能体的代码优先框架。它将用户请求转化为可执行代码,将用户自定义插件视为可调用函数。TaskWeaver支持丰富数据结构、灵活的插件使用与动态插件选择,借助LLM的编码能力处理复杂逻辑;还通过示例融入领域特定知识,并确保生成代码的安全执行。TaskWeaver为打造能处理复杂任务、适配领域特定场景的智能对话智能体提供了强大且灵活的框架,其代码已在https://github.com/microsoft/TaskWeaver/ 开源。

英文摘要:

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/.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑