ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2502.14345
54
1

FlowAgent: Achieving Compliance and Flexibility for Workflow Agents

20 February 2025
Yuchen Shi
Siqi Cai
Zihan Xu
Yuei Qin
Gang Li
Hang Shao
Jiawei Chen
Deqing Yang
Ke Li
Xing Sun
    AIFin
    AI4CE
ArXivPDFHTML
Abstract

The integration of workflows with large language models (LLMs) enables LLM-based agents to execute predefined procedures, enhancing automation in real-world applications. Traditional rule-based methods tend to limit the inherent flexibility of LLMs, as their predefined execution paths restrict the models' action space, particularly when the unexpected, out-of-workflow (OOW) queries are encountered. Conversely, prompt-based methods allow LLMs to fully control the flow, which can lead to diminished enforcement of procedural compliance. To address these challenges, we introduce FlowAgent, a novel agent framework designed to maintain both compliance and flexibility. We propose the Procedure Description Language (PDL), which combines the adaptability of natural language with the precision of code to formulate workflows. Building on PDL, we develop a comprehensive framework that empowers LLMs to manage OOW queries effectively, while keeping the execution path under the supervision of a set of controllers. Additionally, we present a new evaluation methodology to rigorously assess an LLM agent's ability to handle OOW scenarios, going beyond routine flow compliance tested in existing benchmarks. Experiments on three datasets demonstrate that FlowAgent not only adheres to workflows but also effectively manages OOW queries, highlighting its dual strengths in compliance and flexibility. The code is available atthis https URL.

View on arXiv
@article{shi2025_2502.14345,
  title={ FlowAgent: Achieving Compliance and Flexibility for Workflow Agents },
  author={ Yuchen Shi and Siqi Cai and Zihan Xu and Yuei Qin and Gang Li and Hang Shao and Jiawei Chen and Deqing Yang and Ke Li and Xing Sun },
  journal={arXiv preprint arXiv:2502.14345},
  year={ 2025 }
}
Comments on this paper