{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/taskweaver-a-code-first-agent-framework","title":"TaskWeaver: A Code-First Agent Framework","arxiv_id":"2311.17541","date":"2023-11-29","proceeding":null,"authors":["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"],"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/.","url_abs":"https://arxiv.org/abs/2311.17541v3","url_pdf":"https://arxiv.org/pdf/2311.17541v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"taskweaver-a-code-first-agent-framework","repo_url":"https://github.com/microsoft/taskweaver","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"natural-language-understanding","task_name":"Natural Language Understanding"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.17541","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.17541"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/microsoft/taskweaver","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3},"by_repo_kind":{"official":{"samples":3,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"dfbc6039b32e7d21","entry":"get_id","repo":"microsoft/taskweaver","repo_kind":"official","path":"taskweaver/ces/common.py","file_url":"https://github.com/microsoft/taskweaver/blob/HEAD/taskweaver/ces/common.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dfbc6039b32e7d21"}},{"code_sha256_prefix":"4960d08efeeeafcf","entry":"tracing_decorator","repo":"microsoft/taskweaver","repo_kind":"official","path":"taskweaver/module/tracing.py","file_url":"https://github.com/microsoft/taskweaver/blob/HEAD/taskweaver/module/tracing.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4960d08efeeeafcf"}},{"code_sha256_prefix":"8b02a2408b406279","entry":"tracing_decorator_non_class","repo":"microsoft/taskweaver","repo_kind":"official","path":"taskweaver/module/tracing.py","file_url":"https://github.com/microsoft/taskweaver/blob/HEAD/taskweaver/module/tracing.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8b02a2408b406279"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}