论文

tok:为人和智能体设计的 BPMN/DMN 纯文本表示法

tok: a textual concrete syntax of BPMN and DMN for humans and AI agents

精选理由

研究者做了个叫 tok 的纯文本流程建模格式,LLM 写它比写 BPMN XML 省约四分之一 token,校验还能查出 98.2% 的错误,做流程智能体的可以看看。

tok 是 BPMN 2.0.2 流程模型和 DMN 1.5 决策模型的纯文本表示法,一个引擎即可完成标准校验并编译为带自动图的 XML,同时通过 MCP 服务于语言模型应用。相比 37 个工具导出的 893 个 BPMN XML 文件,tok 模型节省 2.2 倍 token。校验器能检出 1411 个注入故障中的 98.2%,高于 XML Schema 加 bpmnlint 的 85.8%。四个未接触过 tok 的语言模型凭一页参考文档即可写出合法 tok,最强模型比 BPMN XML 少用 25% 的 token;作为智能体时合法率达 97.6% 到 100%。

原文 · arXiv cs.AI

tok: a textual concrete syntax of BPMN and DMN for humans and AI agents

tok is a plain-text notation for Business Process Model and Notation (BPMN) 2.0.2 process models and Decision Model and Notation (DMN) 1.5 decisions. One engine checks a tok document against both standards, compiles the document to XML with an automatic diagram, and serves language-model applications through the Model Context Protocol. The paper classifies the notation as an alternative concrete syntax of the BPMN and DMN metamodels and reports one study. A tok model takes 2.2 times fewer tokens than the smallest BPMN XML of 893 files exported by 37 tools and 7.7 times fewer than the files as exported. The checker signals 98.2% of 1,411 injected faults, against 85.8% for the XML Schema with bpmnlint. Four language models new to tok write valid tok from a one-page reference for 85.7 to 100% of 87 process descriptions from two datasets and valid BPMN XML for every description, and the strongest model writes tok with 25% and 19% fewer tokens than BPMN XML. As agents with a lean skill and one checker tool, the models write valid tok for 97.6 to 100% of the descriptions, the strongest model spends 21% and 14% fewer tokens on tok than on BPMN XML, and a skill which sends the model to read the reference through a tool costs 1.7 to 2.8 times the tokens of the lean skill. Of 47 event logs simulated from public models, 44 fit their source models, and tok imports every model discovered from the logs.