LIBRA: Programmatic Induction of Executable Tool Libraries
Zekai Li, Zhenke Liu, Yonghao Li, Junhan Liu, Xulong Xiao, Jiapeng Zhang
Abstract
Large language model agents increasingly retrieve tools from large catalogs, yet most retrievers rank each tool independently by request similarity. For multi tool tasks, this recovers the goal matching tool while omitting prerequisite tools required by the workflow. We introduce LIBRA, a framework for Library Induction by Runtime Assembly that turns a flat tool catalog into an executable tool library. An LLM proposes per tool contracts of candidate invocations, reusable outputs and state changes, and success conditions; LIBRA then tests these compositions in a sandbox and retains the relations supported at runtime. Constructed before user queries, the library requires no dependency annotations, tool use trajectories, or task specific training, and supports both one-shot and agentic retrieval. On AppWorld, BFCL, and SciToolEval, LIBRA improves one-shot Recall and NDCG over the same dense retriever by 7.9 and 3.7 percentage points on average. Within ToolReAGt, it yields corresponding gains of 4.5 and 2.9 points after ten retrieval iterations.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI, cs.IR
- Comments
- Introduces LIBRA, a query-agnostic tool library built via execution-validated prerequisites in a sandbox. Demonstrates consistent performance gains across three benchmarks while discussing sandbox dependencies and library construction trade-offs
Related papers
STUN-Bench: Truly Unseen Tools for Evaluating Shared Tool Experience
Shared title terminologycs.SEAbhijit Chakraborty, Ni Trieu, Vivek Gupta
Dhaani: A Data-Flow-Driven Tool for Greenfield Construction and Brownfield Modernisation
Shared title terminologycs.SEShraddha Surana, Ashwin Srinivasan
Right Verdict, Right Reason? An Execution-Grounded Study of Whether LLM Vulnerability Detectors Understand Vulnerabilities
Shared title terminologycs.SELeizhen Zhang, Sheng Chen
Epistemic Guard: Out-of-Process MCP Receipt Proxying, Post-Turn Prose Supervision, and Provenance-Gated Memory for Tool-Using Autonomous Agents
Shared title terminologycs.SESean Maxwell
Idempotency Is Not Recovery: A Fault-Injection Study of Language-Model Agent Tool Actions
Shared title terminologycs.SESong Xu
BehaVerify: A Formal Verification Tool for Behavior Trees
Shared title terminologycs.SESerena S. Serbinowska, Ben Wooding, Diego Manzanas Lopez et al.