module Riffer::Agent::Session::Repair

Maintains the invariant that every tool_use has a matching tool_result and every tool_result has a parent tool_use.