[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-686577-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-686577-en":130,"doc-similar-686577":158},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","automated-composition-of-agents-a-knapsack-approach-for-agentic-component-selection","Automated Composition of Agents - A Knapsack Approach for Agentic Component Selection","","Designing effective agentic systems requires composing agents, tools, and models so they work reliably in dynamic, uncertain environments. Existing methods often depend on static, semantic retrieval and struggle with incomplete capability descriptions and weak cost-performance trade-offs. This paper introduces a structured automated framework inspired by the knapsack problem, selecting components by jointly optimizing performance, budget constraints, and compatibility via real-time utility testing. Evaluations with Claude 3.5 Sonnet across five datasets show Pareto-optimal behavior with substantially lower component costs, improving single-agent success up to 31.6% and multi-agent success from 37% to 87%.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/automated-composition-of-agents-a-knapsack-approach-for-agentic-component-selection/686577/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/automated-composition-of-agents-a-knapsack-approach-for-agentic-component-selection/686577.png","ImageObject",300,407,{"name":42,"@type":43},"jayni","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-12","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"Why do existing component selection methods for agentic systems perform poorly?","Question",{"text":62,"@type":63},"They rely on static metadata or semantic retrieval, use opaque capability descriptions that do not match real performance, and apply myopic criteria that ignore cost–utility trade-offs.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does the proposed framework select agentic components?",{"text":67,"@type":63},"It models agent composition as a constrained optimization problem inspired by the knapsack problem and uses a composer agent to iteratively discover, test, and choose components while jointly considering performance, budget, and compatibility.",{"name":69,"@type":60,"acceptedAnswer":70},"What improvements does the method achieve in experiments?",{"text":71,"@type":63},"Across five benchmarking datasets, the online-knapsack-based composer lies on the Pareto frontier, improving single-agent success by up to 31.6% versus retrieval baselines and increasing multi-agent success from 37% to 87% when selecting from an inventory of 100+ agents.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},686577,1794057012,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":30,"preview_urls":145},3985747859343,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Automated Composition of Agents: A Knapsack Approach for Agentic Component Selection  \nMichelle Yuan∗† , Khushbu Pahwa∗ , Shuaichen Chang  \nMustafa Kaba, Jiarong Jiang, Xiaofei Ma, Yi Zhang, Monica Sunkara  \nAWS Agentic AI  \n[michelle.yuan@oracle.com](michelle.yuan@oracle.com)  \n{pahwakhu,cshuaich,mdkaba,jiarongj,xiaofeim,yizhngn,[sunkaral}@amazon.com](sunkaral}@amazon.com)  \nAbstract  \nDesigning effective agentic systems requires the seamless composition and integration of agents, tools, and models within dynamic and uncertain environments.  \nMost 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.  \n1 Introduction  \nThe design of effective agentic systems sits at the frontier of artificial intelligence research, promising autonomous agents capable of sophisticated reasoning, tool manipulation, and collaborative problemsolving. Yet as the ecosystem of AI components expands, with proliferating models, APIs, and specialized agents, a critical bottleneck emerges: the paradox of choice [23] . While modular reuse offers clear advantages over building systems from scratch, developers face a combinatorial explosion of possible configurations, each with hidden constraints and unpredictable interactions. Traditional approaches relying on manual curation or metadata-based retrieval [29] struggle with three fundamental limitations: opaque capability descriptions that rarely match real-world performance, myopic selection criteria that ignore cost-utility trade-offs, and static architectures that break down when requirements evolve.  \n*These authors contributed equally.  \n†Work completed while at Amazon. Currently at Oracle AI.  \n39th Conference on Neural Information Processing Systems (NeurIPS 2025) .  \nIn this paper, we introduce agent composition as a knapsack problem, where an AI system designer must select components that deliver optimal performance under cost constraints. We present the composer agent, which is responsible for selecting components through an iterative process of discovery and adaptation. Rather than treating existing tools or agents as fixed building blocks, the composer continuously probes their actual capabilities through targeted testing. The sandbox trials measure not just what a component claims to do, but how reliably it performs under varying conditions and interactions. For single-agent systems, this means assembling the right tools for the task while balancing accuracy against computational exp","cbCaicN49rhYEPt6","https://ap.wps.com/l/cbCaicN49rhYEPt6","pdf",564604,29,"English","# 1 Introduction\n## Agent composition as a knapsack problem\n## Composer agent workflow and real-time testing\n## Contributions and empirical validation","[{\"question\":\"Why do existing component selection methods for agentic systems perform poorly?\",\"answer\":\"They rely on static metadata or semantic retrieval, use opaque capability descriptions that do not match real performance, and apply myopic criteria that ignore cost–utility trade-offs.\"},{\"question\":\"How does the proposed framework select agentic components?\",\"answer\":\"It models agent composition as a constrained optimization problem inspired by the knapsack problem and uses a composer agent to iteratively discover, test, and choose components while jointly considering performance, budget, and compatibility.\"},{\"question\":\"What improvements does the method achieve in experiments?\",\"answer\":\"Across five benchmarking datasets, the online-knapsack-based composer lies on the Pareto frontier, improving single-agent success by up to 31.6% versus retrieval baselines and increasing multi-agent success from 37% to 87% when selecting from an inventory of 100+ agents.\"}]","Automated Composition of Agents - A Knapsack Approach for Agentic Component Selection | PDF",73,[146,150,154],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5fee0be3f32b15d40995ae73a1783366.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/19bc2855cc52dab2b69f097b3fa15fd3.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/636e5dacbd2cda9bd0f5001dd11657d2.webp",981,1269,{"list":159,"token":11},[160,167,173,180,186,192,198,204,211,217],{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":165,"category_name":29,"create_tm":166},460640,"Challenges and Limitations of Multimodal Large Language Models in Interpreting Pediatric Panoramic Radiographs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229925720242/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=UP6XVgIQ4DuQaPqaBuqjX5yE5ns%3D","challenges-and-limitations-of-multimodal-large-language-models-in-interpreting-pediatric-panoramic-radiographs",13,1790758954,{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":33,"category_name":29,"create_tm":172},732967,"System Card - Claude Sonnet 5 - June 30, 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031414705/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=AuSzJiTI2H39ygO3mK3MCgk0Gxc%3D","system-card-claude-sonnet-5-june-30-2026",1795383120,{"doc_id":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":29,"create_tm":179},433892,"Multi-center benchmarking of large language models for clinical decision support in lung cancer screening","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229923600910/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=scqeUb8VgKIHmdmpHrJElRb3EMg%3D","multi-center-benchmarking-of-large-language-models-for-clinical-decision-support-in-lung-cancer-screening",18,1790665944,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":101,"category_name":29,"create_tm":185},687624,"Claude Sonnet 5.5 System Card - Executive summary","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262972/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=fEWL2QOTuatjTbyINCHaEg2TNr4%3D","claude-sonnet-55-system-card-executive-summary",1794084334,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":96,"category_name":29,"create_tm":191},684682,"Claude Sonnet 4.6 System Card","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000065355/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=bnVF6uwtNlfRRmKcV%2FMYqfqjrv8%3D","claude-sonnet-46-system-card",1794005795,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":33,"category_name":29,"create_tm":197},733015,"Claude Opus 4 and Claude Sonnet 4 System Card - May 2025","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031782442/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=h3WOnkmnlLLrlWxCJUJM5QSzkv0%3D","claude-opus-4-and-claude-sonnet-4-system-card-may-2025",1795383331,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":106,"category_name":29,"create_tm":203},687619,"Claude Opus 4 & Claude Sonnet 4 - System Card - Safety and Alignment Assessment","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000649666/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=ng5%2FEKtF%2FyIz%2FEvTf%2Fv5x7TsN8c%3D","claude-opus-4-claude-sonnet-4-system-card-safety-and-alignment-assessment",1794084310,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":209,"category_name":29,"create_tm":210},440565,"Leveraging generative AI to enhance Synthea model development - Research and Applications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229924526183/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=zMyJ5NfKd0nG1nvOx9ZjcO8fz3M%3D","leveraging-generative-ai-to-enhance-synthea-model-development-research-and-applications",15,1790692536,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":123,"category_name":29,"create_tm":216},698659,"System Card: Claude Sonnet 4.5 - Changelog - October 10, 2025","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010391369/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=ea0poi8Dxq%2BUgxoD%2F0UQ3sk%2FC%2FU%3D","system-card-claude-sonnet-45-changelog-october-10-2025",1794454323,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":29,"create_tm":223},455959,"Evaluating Multiple Input Strategies of Large Language Models for Gallbladder Polyps on Ultrasound - A Comparative Study","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229925296996/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=ySEdS5nrYzB6IK7wZW4hdK5Fcu4%3D","evaluating-multiple-input-strategies-of-large-language-models-for-gallbladder-polyps-on-ultrasound-a-comparative-study",14,1790744794]