CAPE: Coordinating Calibration and Search for Tool-Use Policies
Abstract
A tool call can fail even when the operation behind it is correct, because the receiving tool parses delimiters, dates or record layouts under a configuration the agent cannot inspect. Compiling a tool-use policy for such a tool requires both calibration, which evaluates candidate calls on candidate configurations, and search over the evaluated calls. The two share one compilation budget: calibrating everything first postpones any improved policy until the end, while re-solving every partially known model delays the next useful query. A call becomes usable as soon as its effects are known on the configurations that reach it. We present CAPE, a training-free compiler built on this observation. It maintains an executable policy at all times, directs calibration to the calls that can improve this policy, and tightens bounds only where doing so ends calibration early. Returned policies preserve every configuration the initial policy completes, and CAPE certifies optimality when its executable and optimistic values meet. On CSV and JSON workflows built from 64 requests, CAPE reaches the independently computed optimum in 502 of 504 compilations while taking 22.0% less compilation time than eager exact search. On larger CSV families it returns policies with higher completion at similar compilation time, and it raises completion by 15.38 to 34.66 percentage points over an LLM that revises its serialization from error feedback.
Create a lesson
Metadata
- Categories
- cs.AI, cs.SE
Related papers
TACT-Bench: Testing Adaptive Conversational Threats against Tool-Use Agents
Shared title terminologycs.AIIlia Hashemi Rad, Feijie Wu, Haoyu Wang et al.
Intent-Conditioned Argument Mediation for Tool-Using LLM Agents: Blocking Trusted-but-Unauthorized Arguments
Shared title terminologycs.AIYulliwas Ameur, Miqeas Pedro Mendes, Samia Bouzefrane
VISE: Verifier-Independent Skill Self-Evolution with Feedback from Tool Implementations
Shared title terminologycs.AIYuxuan Liu, Chongyang Du, Yuhao Zhang et al.
VC-OPD: Learning to See What Matters via Visual Cue On-Policy Self-Distillation
Shared title terminologycs.AIQinxuan Wang, Zheyu Zhang, Yijing Yang et al.
DexOPD: Dual-Extrapolation On-Policy Distillation for Diffusion Models
Shared title terminologycs.AIYunchao Ke, Yanzhe Hu, Yi Yang et al.
Contrastive On-Policy Self-Distillation for LLM Unlearning
Shared title terminologycs.AIFangzhou Lin, Shuo Xing, Xin Li et al.