arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.13383cs.AI
收藏

基于大语言模型的轻量模块化框架:用于AgentForge中的设计、实现与应用

A Lightweight Modular Framework for Constructing Autonomous Agents Driven by Large Language Models: Design, Implementation, and Applications in AgentForge

University of Tartu(塔尔图大学);S Holding OÜ(3S控股公司)

Akbar Anbar Jafari, Cagri Ozcinar, Gholamreza Anbarjafari

AI总结:

AgentForge是一种基于大语言模型的轻量模块化框架,通过可组合的技能抽象、统一的LLM后端接口和声明性配置系统,提升自主代理的开发效率和灵活性。

摘要:

大语言模型的出现推动了自主代理开发范式转变,使系统能够进行推理、规划和执行复杂多步骤任务。然而,现有代理框架往往存在架构僵化、供应商锁定和过度复杂的问题,阻碍了快速原型设计和部署。本文提出了AgentForge,一个轻量级、开源的Python框架,旨在通过有原则的模块化架构来民主化构建由大语言模型驱动的自主代理。AgentForge引入了三个关键创新:(1)可组合的技能抽象,使任务分解能够通过正式定义的输入输出合同进行精细化;(2)统一的LLM后端接口,支持无缝切换云API和本地推理引擎;(3)基于YAML的声明性配置系统,将代理逻辑与实现细节分离。我们正式将技能组合机制定义为有向无环图(DAG),并证明其表达性可以表示任意的顺序和并行任务工作流。在四个基准场景中的全面实验评估表明,AgentForge在任务完成率方面具有竞争力,同时将开发时间比LangChain减少了62%,比直接API集成减少了78%。延迟测量证实了低于100毫秒的调度开销,使该框架适用于实时应用。模块化设计促进了扩展:我们展示了六个内置技能的集成,并为定制技能开发提供了全面的文档。AgentForge通过为研究人员和实践者提供构建、评估和部署自主代理的生产就绪基础,填补了LLM代理生态系统中的关键空白,而不会牺牲灵活性或性能。

英文摘要:

The emergence of LLMs has catalyzed a paradigm shift in autonomous agent development, enabling systems capable of reasoning, planning, and executing complex multi-step tasks. However, existing agent frameworks often suffer from architectural rigidity, vendor lock-in, and prohibitive complexity that impedes rapid prototyping and deployment. This paper presents AgentForge, a lightweight, open-source Python framework designed to democratize the construction of LLM-driven autonomous agents through a principled modular architecture. AgentForge introduces three key innovations: (1) a composable skill abstraction that enables fine-grained task decomposition with formally defined input-output contracts, (2) a unified LLM backend interface supporting seamless switching between cloud-based APIs and local inference engines, and (3) a declarative YAML-based configuration system that separates agent logic from implementation details. We formalize the skill composition mechanism as a directed acyclic graph (DAG) and prove its expressiveness for representing arbitrary sequential and parallel task workflows. Comprehensive experimental evaluation across four benchmark scenarios demonstrates that AgentForge achieves competitive task completion rates while reducing development time by 62% compared to LangChain and 78% compared to direct API integration. Latency measurements confirm sub-100ms orchestration overhead, rendering the framework suitable for real-time applications. The modular design facilitates extension: we demonstrate the integration of six built-in skills and provide comprehensive documentation for custom skill development. AgentForge addresses a critical gap in the LLM agent ecosystem by providing researchers and practitioners with a production-ready foundation for constructing, evaluating, and deploying autonomous agents without sacrificing flexibility or performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑