How do I debug failed AI agent tool calls? · PitHub