FlowAgent: Achieving Compliance and Flexibility for Workflow Agents

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Shi, Yuchen, Cai, Siqi, Xu, Zihan, Qin, Yuei, Li, Gang, Shao, Hang, Chen, Jiawei, Yang, Deqing, Li, Ke, Sun, Xing
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917930728423424
author Shi, Yuchen
Cai, Siqi
Xu, Zihan
Qin, Yuei
Li, Gang
Shao, Hang
Chen, Jiawei
Yang, Deqing
Li, Ke
Sun, Xing
author_facet Shi, Yuchen
Cai, Siqi
Xu, Zihan
Qin, Yuei
Li, Gang
Shao, Hang
Chen, Jiawei
Yang, Deqing
Li, Ke
Sun, Xing
contents 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 at https://github.com/Lightblues/FlowAgent.
format Preprint
id arxiv_https___arxiv_org_abs_2502_14345
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle FlowAgent: Achieving Compliance and Flexibility for Workflow Agents
Shi, Yuchen
Cai, Siqi
Xu, Zihan
Qin, Yuei
Li, Gang
Shao, Hang
Chen, Jiawei
Yang, Deqing
Li, Ke
Sun, Xing
Artificial Intelligence
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 at https://github.com/Lightblues/FlowAgent.
title FlowAgent: Achieving Compliance and Flexibility for Workflow Agents
topic Artificial Intelligence
url https://arxiv.org/abs/2502.14345