Abstract

Multi-agent systems (MAS) powered by large language models have shown strong performance across code generation, mathematical reasoning, and question answering. However, existing methods for automating MAS design mostly operate at the task level, producing a single fixed workflow per benchmark that is applied uniformly to all queries. This assumption fails under realistic conditions. Query difficulty varies widely within a task, and real-world workloads mix heterogeneous task types. We introduce OOPMAS, a training-free framework that generates both the agent set and the coordination workflow at the granularity of individual queries. Agents are represented as object-oriented class definitions with dedicated roles, tools, and persistent state, and workflows are expressed as executable main functions over these agent objects. A dynamic skill library accumulates structured lessons from execution feedback across optimization rounds, enabling in-context improvement without any gradient updates or fine-tuning. On a mixed-task benchmark of queries spanning code, math, and QA, OOPMAS achieves 89.6% accuracy, outperforming the strongest baseline by 18.1 percentage points. A model-swap study across four LLM backbones shows consistent scaling, reaching 92.4% with the strongest model.

Keywords

Subject

Publication details

Journal
Not available
Open access
Green open access

Cite this article

APA 7

Cheng, Q., Chen, S., Cheng, W., Xie, Y., Jia, X., Wang, H., & Chen, H. (2026). OOPMAS: Object-Oriented Multi-Agent Systems for Query-Level Workflow Generation. https://omanscience.com/en/articles/oopmas-object-oriented-multi-agent-systems-for-query-level-workflow-generation

MLA 9

Cheng, Qi, et al. "OOPMAS: Object-Oriented Multi-Agent Systems for Query-Level Workflow Generation." https://omanscience.com/en/articles/oopmas-object-oriented-multi-agent-systems-for-query-level-workflow-generation.

Chicago (author–date)

Cheng, Qi, Shengyu Chen, Wei Cheng, Yiqun Xie, Xiaowei Jia, Haoyu Wang, and Haifeng Chen. 2026. "OOPMAS: Object-Oriented Multi-Agent Systems for Query-Level Workflow Generation." https://omanscience.com/en/articles/oopmas-object-oriented-multi-agent-systems-for-query-level-workflow-generation.

Harvard

Cheng, Q., Chen, S., Cheng, W., Xie, Y., Jia, X., Wang, H. and Chen, H. (2026) 'OOPMAS: Object-Oriented Multi-Agent Systems for Query-Level Workflow Generation', Available at: https://omanscience.com/en/articles/oopmas-object-oriented-multi-agent-systems-for-query-level-workflow-generation.

Vancouver

Cheng Q, Chen S, Cheng W, Xie Y, Jia X, Wang H, et al. OOPMAS: Object-Oriented Multi-Agent Systems for Query-Level Workflow Generation. https://omanscience.com/en/articles/oopmas-object-oriented-multi-agent-systems-for-query-level-workflow-generation

IEEE

Q. Cheng, S. Chen, W. Cheng, Y. Xie, X. Jia, H. Wang, and H. Chen, "OOPMAS: Object-Oriented Multi-Agent Systems for Query-Level Workflow Generation," https://omanscience.com/en/articles/oopmas-object-oriented-multi-agent-systems-for-query-level-workflow-generation.