TL;DR
AgentSPEX is a new language and framework for designing, executing, and visualizing structured, controllable workflows for language model agents, improving interpretability and modifiability.
Contribution
It introduces AgentSPEX, supporting explicit control flow, modularity, and visualization, addressing limitations of reactive prompting and tightly coupled frameworks.
Findings
AgentSPEX enables explicit control flow with branching and loops.
It improves interpretability and accessibility over existing frameworks.
AgentSPEX performs well on 7 benchmark tasks.
Abstract
Language-model agent systems commonly rely on reactive prompting, in which a single instruction guides the model through an open-ended sequence of reasoning and tool-use steps, leaving control flow and intermediate state implicit and making agent behavior potentially difficult to control. Orchestration frameworks such as LangGraph, DSPy, and CrewAI impose greater structure through explicit workflow definitions, but tightly couple workflow logic with Python, making agents difficult to maintain and modify. In this paper, we introduce AgentSPEX, an Agent SPecification and EXecution Language for specifying LLM-agent workflows with explicit control flow and modular structure, along with a customizable agent harness. AgentSPEX supports typed steps, branching and loops, parallel execution, reusable submodules, and explicit state management, and these workflows execute within an agent harness…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
