Automated Composition of Agents: A Knapsack Approach for Agentic Component Selection
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
Designing effective agentic systems requires the seamless composition and integration of agents, tools, and models within dynamic and uncertain environments. Most existing methods rely on static, semantic retrieval approaches for tool or agent discovery. However, effective reuse and composition of existing components remain challenging due to incomplete capability descriptions and the limitations of retrieval methods. Component selection suffers because the decisions are not based on capability, cost, and real-time utility. To address these challenges, we introduce a structured, automated framework for agentic system composition that is inspired by the knapsack problem. Our framework enables a composer agent to systematically identify, select, and assemble an optimal set of agentic components by jointly considering performance, budget constraints, and compatibility. By dynamically testing candidate components and modeling their utility in real-time, our approach streamlines the assembly of agentic systems and facilitates scalable reuse of resources. Empirical evaluation with Claude 3.5 Sonnet across five benchmarking datasets shows that our online-knapsack-based composer consistently lies on the Pareto frontier, achieving higher success rates at significantly lower component costs compared to our baselines. In the single-agent setup, the online knapsack composer shows a success rate improvement of up to 31.6% in comparison to the retrieval baselines. In multi-agent systems, the online knapsack composer increases success rate from 37% to 87% when agents are selected from an agent inventory of 100+ agents. The substantial performance gap confirms the robust adaptability of our method across diverse domains and budget constraints.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 21 of its 42 references that are in the map. First posted on arXiv 18 Oct 2025.
Builds on
21 of 42 references.
Closest ancestors · 7
Same direction, newest first
- 2025Multi-agent Architecture Search via Agentic Supernet6 Feb
- 2024Towards Effective GenAI Multi-Agent Collaboration: Design and Evaluation for Enterprise Applications6 Dec
- 2024Cut the Crap: An Economical Communication Pipeline for LLM-based Multi-Agent Systems3 Oct
- 2024Automated Design of Agentic Systems15 Aug
- 2024Internet of Agents: Weaving a Web of Heterogeneous Agents for Collaborative Intelligence9 Jul
- 2024AvaTaR: Optimizing LLM Agents for Tool Usage via Contrastive Reasoning17 Jun
- 2023A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaboration3 Oct
Other references · 14
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,324
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2023GAIA: a benchmark for General AI Assistantscited by 1,084
- 2024Executable Code Actions Elicit Better LLM Agentscited by 537
- 2024Measuring short-form factuality in large language modelscited by 345
- 2024AI Agents That Mattercited by 199
- 2025Retrieval Models Aren't Tool-Savvy: Benchmarking Tool Retrieval for Large Language Modelscited by 46
- 2016Distributed Constraint Optimization Problems and Applications: A Surveycited by 26
- 2025RAG-MCP: Mitigating Prompt Bloat in LLM Tool Selection via Retrieval-Augmented Generationcited by 26
2 more
- 2025ToolFuzz -- Automated Agent Tool Testingcited by 18
- 2023Time Fairness in Online Knapsack Problemscited by 3
Built on by
Citing papers per year: 2026: 10.
10 papers.
- 2026Experience as a Compass: Multi-agent RAG with Evolving Orchestration and Agent Promptscited by 2
- 2026MOSAIC: Modular Orchestration for Structured Agentic Intelligence and Compositioncited by 2
- 2026Optimal Skill Selection for LLM Agents with Provable Bicriteria Guaranteescited by 2
- 2026AgentSearchBench: A Benchmark for AI Agent Search in the Wildcited by 1
- 2026SkillSelect-Serve: QoS-Aware Budgeted Skill Service Recommendation for LLM Agentscited by 1
- 2026n-Musketeers: Reinforcement Learning Shapes Collaboration Among Language Modelscited by 0
- 2026How Much Does Correctness Cost? Budgeted Placement of Strong Correctors in a Weak Multi-Agent Swarmcited by 0
- 2026Mathematical Programming in Machine Learning and Artificial Intelligence: A Unified Taxonomy of Models and Applicationscited by 0
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agentscited by 0
- 2026Pay for the Fault, Not the Flow: Label-Free In-Flow Multi-Agent Workflow Optimizationcited by 0
- 2026Pay for the Fault, Not the Flow: Label-Free In-Flow Multi-Agent Workflow Optimization1 Oct 2026
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agents30 Sep 2026
- 2026Mathematical Programming in Machine Learning and Artificial Intelligence: A Unified Taxonomy of Models and Applications7 Sep 2026
- 2026Optimal Skill Selection for LLM Agents with Provable Bicriteria Guarantees20 Aug 2026
- 2026How Much Does Correctness Cost? Budgeted Placement of Strong Correctors in a Weak Multi-Agent Swarm7 Jul 2026
- 2026MOSAIC: Modular Orchestration for Structured Agentic Intelligence and Composition30 May 2026
- 2026SkillSelect-Serve: QoS-Aware Budgeted Skill Service Recommendation for LLM Agents8 May 2026
- 2026AgentSearchBench: A Benchmark for AI Agent Search in the Wild24 Apr 2026
- 2026Experience as a Compass: Multi-agent RAG with Evolving Orchestration and Agent Prompts1 Apr 2026
- 2026n-Musketeers: Reinforcement Learning Shapes Collaboration Among Language Models9 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026AgentFactory: Towards Automated Agentic System Design and Optimization
- 2026AOrchestra: Automating Sub-Agent Creation for Agentic Orchestration
- 2026Learning to Construct Practical Agentic Systems
- 2025SwarmAgentic: Towards Fully Automated Agentic System Generation via Swarm Intelligence
- 2026An Empirical Study of Multi-Agent Collaboration for Automated Research
- 2025EvoAgentX: An Automated Framework for Evolving Agentic Workflows
- 2025Control Plane as a Tool: A Scalable Design Pattern for Agentic AI Systems
- 2025AutoMaAS: Self-Evolving Multi-Agent Architecture Search for Large Language Models