TapeAgents unifies agent development and optimization by treating every interaction as a replayable, structured log.
Record agent sessions as tapes, replay them for debugging, reuse them for training.
TapeAgents introduces a structured logging framework that records agent sessions as reusable "tapes," enabling both development debugging and systematic optimization of LLM agents.
-----
https://arxiv.org/abs/2412.08445
π€ Original Problem:
Existing frameworks either focus on agent development or optimization, but not both. Developers lack tools to effectively debug, audit, and improve LLM agents while maintaining session persistence and reproducibility.
-----
π οΈ Solution in this Paper:
β TapeAgents centers around a granular, structured log called "tape" that serves as both session memory and resumable state
β The framework uses nodes as basic units that process LLM outputs to generate new tape steps
β Agents compose nodes and can have subagents, forming hierarchical teams
β Environment reacts to agent actions by adding observation steps to the tape
β The tape-centric design enables session persistence, debugging, and optimization through rich metadata
-----
π‘ Key Insights:
β Combining low-level control with high-level agent building paradigms enables both development and optimization
β Structured logs with rich metadata facilitate training data generation
β Resumable state machine architecture allows step-by-step debugging
β Tape reuse across agents enables systematic evaluation and improvement
-----
π Results:
β Successfully fine-tuned a cost-effective form-filling assistant achieving 76.6% GREADTH score
β Reduced costs by 300x while maintaining performance using 8B parameter model
β Demonstrated effectiveness across multiple use cases including web search, data science, and math problem-solving










