Preprint Open access
Agent Behavior as Code: Efficient and Robust LLM Agents with Programmatic Specifications
AI agents based on foundation models (FMs) have demonstrated strong capabilities to perform complex open-ended tasks. However, they face some common challenges in practice: (a) agent behavior can deviate drastically even for semantically similar tasks, leading to catastrophically propagated errors; (b) high cost and la …