AIBullisharXiv – CS AI · 18h ago7/10
🧠
Contract2Tool: Learning Preconditions and Effects for Reliable Tool-Augmented LLM Agents
Contract2Tool is a framework that automatically infers tool contracts (preconditions, effects, risk levels) for large language model agents from documentation and execution traces, enabling reliable tool use without manual specification. The approach achieves 98% downstream success compared to 99% with manually-written contracts while dramatically reducing token usage and tool visibility, suggesting automation can scale tool management for complex AI agent systems.