百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

TaskCraft

> 编程语言
开源

[ICLR 2026] 一个用于生成可扩展难度、多工具和可验证的代理任务以及执行轨迹的库。

197 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

[ICLR 2026] 一个用于生成可扩展难度、多工具和可验证的代理任务以及执行轨迹的库。

[Paper] [Data]

taskcraft is a library for generating difficulty-scalable, multi-tool, and verifiable agentic tasks with execution trajectories. It offers:

✨ Unlimited Task Complexity Scaling: Build multi-level complex challenges from simple atomic tasks via depth-based (hierarchical) and width-based (compositional) extension strategies, supporting multi hops reasoning and multi-tool collaboration.

‍ Seamless Multi-Modal Input Parsing. Directly process heterogeneous data sources like PDF/HTML/URL, automatically extracting key information to generate atomic questions, with support for single-modal (text) and multi-modal (text-image hybrid) modes.

Verifiable Execution Trajectory Generation: Produce standardized function call logs and tool invocation chains for every task, enabling precise reproduction and evaluation of agent execution processes.

Difficulty Grading and Large-Scale Data Generation: Built-in difficulty scoring system automatically generates tasks from simple (1-step) to expert-level (4-step+), with a default 36,000+ synthetic dataset ready for model training.

Contents

  • Installation
  • Set API Keys
  • Use Your Agent
  • Dataset
  • Contribute
  • Citation

Installation

Requirements

Python>=3.10

Method1: Install with pip

bash
conda create -n taskcraft python=3.10
conda activate taskcraft
pip install taskcraft

Method2: Install from source for development.

bash
conda create -n taskcraft python=3.10
conda activate taskcraft
cd TaskCraft
pip install -e .

Set API Keys

Before use, set the following environment variables (supports OpenAI-compatible models and third-party tools): For Linux:

bash
export OPENAI_API_BASE="your-openai-endpoint"   # e.g., OpenAI official or Azure OpenAI
export OPENAI_API_KEY="your-api-key"            # OpenAI API key
export SERP_API_KEY="your-serpapi-key"          # see https://serpapi.com/
export JINA_API_KEY="your-jina-key"             # see https://jina.ai/

For windows:

bash
$env:OPENAI_API_BASE="your-openai-endpoint"   # e.g., OpenAI official or Azure OpenAI
$env:OPENAI_API_KEY="your-api-key"            # OpenAI API key
$env:SERP_API_KEY="your-serpapi-key"          # see https://serpapi.com/
$env:JINA_API_KEY="your-jina-key"             # see https://jina.ai/

Usage Examples

Atomic Task Generation

Extract the content from PDF/HTML/URL/Image to generate atomic agentic tasks.

…

Depth-based Extensions

Generate multi-hop reasoning tasks from atomic tasks to simulate real-world agent decision-making.

…

Width-based Extensions

…

Use Your Own Agent

By default, we rely on OAgents, ensuring seamless execution of taskcraft. However, you're free to deploy your own agent to tailor the experience to your specific needs. You can add your own agent class in src/tools/agent_tools.py accordingly.

…

Then you can use these agents in the depth_extend function by passing them as parameters.

…

Dataset

The generated dataset can be found in huggingface.

Contribute

Welcome to report issues or submit feature requests via Issues. Feel free to contribute code or documentation improvements :).

Citation

If you use TaskCraft in your publication, please cite it by using the following BibTeX entry.

bibtex
@misc{shi2025taskcraft,
      title={TaskCraft: Automated Generation of Agentic Tasks}, 
      author={Dingfeng Shi and Jingyi Cao and Qianben Chen and Weichen Sun and Weizhen Li and Hongxuan Lu and Fangchen Dong and Tianrui Qin and King Zhu and Minghao Yang and Jian Yang and Ge Zhang and Jiaheng Liu and Changwang Zhang and Jun Wang and Yuchen Eleanor Jiang and Wangchunshu Zhou},
      year={2025},
      url={https://arxiv.org/abs/2506.10055}, 
}

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言